Exception: Avromatic::Model::MessageDecoder::MagicByteError

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

Instance Method Summary collapse

Constructor Details

#initialize(magic_byte) ⇒ MagicByteError

Returns a new instance of MagicByteError.



22
23
24
# File 'lib/avromatic/model/message_decoder.rb', line 22

def initialize(magic_byte)
  super("Expected data to begin with a magic byte, got '#{magic_byte}'")
end