Exception: Avromatic::Model::MessageDecoder::DuplicateKeyError
- Inherits:
-
StandardError
- Object
- StandardError
- Avromatic::Model::MessageDecoder::DuplicateKeyError
- Defined in:
- lib/avromatic/model/message_decoder.rb
Instance Method Summary collapse
-
#initialize(*models) ⇒ DuplicateKeyError
constructor
A new instance of DuplicateKeyError.
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 |