Exception: DatabaseValidations::Errors::OptionIsNotSupported

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option, database, supported_options) ⇒ OptionIsNotSupported

Returns a new instance of OptionIsNotSupported.



42
43
44
45
46
47
# File 'lib/database_validations/validations/errors.rb', line 42

def initialize(option, database, supported_options)
  @option = option
  @database = database
  @supported_options = supported_options
  super "Option #{self.option} is not supported for #{self.database}. Supported options are: #{self.supported_options}"
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



40
41
42
# File 'lib/database_validations/validations/errors.rb', line 40

def database
  @database
end

#optionObject (readonly)

Returns the value of attribute option.



40
41
42
# File 'lib/database_validations/validations/errors.rb', line 40

def option
  @option
end

#supported_optionsObject (readonly)

Returns the value of attribute supported_options.



40
41
42
# File 'lib/database_validations/validations/errors.rb', line 40

def supported_options
  @supported_options
end