Exception: DatabaseValidations::Errors::UnknownDatabase

Inherits:
Base
  • Object
show all
Defined in:
lib/database_validations/lib/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#env_message

Constructor Details

#initialize(database) ⇒ UnknownDatabase

Returns a new instance of UnknownDatabase.



38
39
40
41
# File 'lib/database_validations/lib/errors.rb', line 38

def initialize(database)
  @database = database
  super "Unknown database: #{self.database}"
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



36
37
38
# File 'lib/database_validations/lib/errors.rb', line 36

def database
  @database
end