Exception: JSONError::Errors::DisallowedPropertySetting

Inherits:
StandardError
  • Object
show all
Defined in:
lib/json_error/errors/disallowed_property_setting.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DisallowedPropertySetting

Returns a new instance of DisallowedPropertySetting.



4
5
6
7
8
# File 'lib/json_error/errors/disallowed_property_setting.rb', line 4

def initialize(options = {})
  property = options.fetch(:property)
  klass = options.fetch(:class)
  super("Setting #{property} property is disallowed for #{klass}.")
end