Exception: DatabaseValidations::Errors::OptionIsNotSupported
- Defined in:
- lib/database_validations/lib/errors.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#option ⇒ Object
readonly
Returns the value of attribute option.
-
#supported_options ⇒ Object
readonly
Returns the value of attribute supported_options.
Instance Method Summary collapse
-
#initialize(option, database, supported_options) ⇒ OptionIsNotSupported
constructor
A new instance of OptionIsNotSupported.
Methods inherited from Base
Constructor Details
#initialize(option, database, supported_options) ⇒ OptionIsNotSupported
Returns a new instance of OptionIsNotSupported.
47 48 49 50 51 52 |
# File 'lib/database_validations/lib/errors.rb', line 47 def initialize(option, database, ) @option = option @database = database @supported_options = super "Option #{self.option} is not supported for #{self.database}. Supported options are: #{self.}" end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
45 46 47 |
# File 'lib/database_validations/lib/errors.rb', line 45 def database @database end |
#option ⇒ Object (readonly)
Returns the value of attribute option.
45 46 47 |
# File 'lib/database_validations/lib/errors.rb', line 45 def option @option end |
#supported_options ⇒ Object (readonly)
Returns the value of attribute supported_options.
45 46 47 |
# File 'lib/database_validations/lib/errors.rb', line 45 def @supported_options end |