Exception: Avromatic::Model::UnknownAttributeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/avromatic/model/unknown_attribute_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, unknown_attributes:, allowed_attributes:) ⇒ UnknownAttributeError

Returns a new instance of UnknownAttributeError.



8
9
10
11
12
# File 'lib/avromatic/model/unknown_attribute_error.rb', line 8

def initialize(message, unknown_attributes:, allowed_attributes:)
  super(message)
  @unknown_attributes = unknown_attributes
  @allowed_attributes = allowed_attributes
end

Instance Attribute Details

#allowed_attributesObject (readonly)

Returns the value of attribute allowed_attributes.



6
7
8
# File 'lib/avromatic/model/unknown_attribute_error.rb', line 6

def allowed_attributes
  @allowed_attributes
end

#unknown_attributesObject (readonly)

Returns the value of attribute unknown_attributes.



6
7
8
# File 'lib/avromatic/model/unknown_attribute_error.rb', line 6

def unknown_attributes
  @unknown_attributes
end