Exception: Avromatic::Model::MessageDecoder::UnexpectedKeyError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_nameObject (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