Exception: Avromatic::Model::MessageDecoder::UnexpectedKeyError
- Inherits:
-
StandardError
- Object
- StandardError
- Avromatic::Model::MessageDecoder::UnexpectedKeyError
- Defined in:
- lib/avromatic/model/message_decoder.rb
Instance Attribute Summary collapse
-
#key_schema_name ⇒ Object
readonly
Returns the value of attribute key_schema_name.
-
#value_schema_name ⇒ Object
readonly
Returns the value of attribute value_schema_name.
Instance Method Summary collapse
-
#initialize(key_schema_name, value_schema_name) ⇒ UnexpectedKeyError
constructor
A new instance of UnexpectedKeyError.
Constructor Details
#initialize(key_schema_name, value_schema_name) ⇒ UnexpectedKeyError
Returns a new instance of UnexpectedKeyError.
14 15 16 17 18 |
# File 'lib/avromatic/model/message_decoder.rb', line 14 def initialize(key_schema_name, value_schema_name) super("Unexpected schemas #{[key_schema_name, value_schema_name]}") @key_schema_name = key_schema_name @value_schema_name = value_schema_name end |
Instance Attribute Details
#key_schema_name ⇒ Object (readonly)
Returns the value of attribute key_schema_name.
12 13 14 |
# File 'lib/avromatic/model/message_decoder.rb', line 12 def key_schema_name @key_schema_name end |
#value_schema_name ⇒ Object (readonly)
Returns the value of attribute value_schema_name.
12 13 14 |
# File 'lib/avromatic/model/message_decoder.rb', line 12 def value_schema_name @value_schema_name end |