Exception: Avromatic::Model::MessageDecoder::DuplicateKeyError

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

Instance Method Summary collapse

Constructor Details

#initialize(*models) ⇒ DuplicateKeyError

Returns a new instance of DuplicateKeyError.



28
29
30
31
# File 'lib/avromatic/model/message_decoder.rb', line 28

def initialize(*models)
  super("Multiple models #{models} have the same key "\
        "'#{Avromatic::Model::MessageDecoder.model_key(models.first)}'")
end