class SesMachine::Errors::InvalidDatabase
Raised when the database connection has not been set up properly, either by attempting to set an object on the db that is not a Mongo::DB
, or not setting anything at all.
Example:
InvalidDatabase.new("Not a DB")
Public Class Methods
new(database)
click to toggle source
# File lib/ses_machine/errors.rb, line 14 def initialize(database) @database = database end
Public Instance Methods
message()
click to toggle source
# File lib/ses_machine/errors.rb, line 18 def message "Database should be a Mongo::DB, not #{@database.class.name}" end