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