Exception: DatabaseValidations::Errors::UnsupportedDatabase

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(method, database) ⇒ UnsupportedDatabase

Returns a new instance of UnsupportedDatabase.



58
59
60
61
62
# File 'lib/database_validations/lib/errors.rb', line 58

def initialize(method, database)
  @database = database
  @method = method
  super "Database #{database} doesn't support #{method}"
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



56
57
58
# File 'lib/database_validations/lib/errors.rb', line 56

def database
  @database
end

#methodObject (readonly)

Returns the value of attribute method.



56
57
58
# File 'lib/database_validations/lib/errors.rb', line 56

def method
  @method
end