Exception: MaxCube::Messages::InvalidMessageBody

Inherits:
InvalidMessage
  • Object
show all
Defined in:
lib/maxcube/messages.rb

Overview

Exception class that denotes that an error occured while parsing/serializing message body, which is specific to message type.

Instance Method Summary collapse

Constructor Details

#initialize(msg_type, info = 'invalid format') ⇒ InvalidMessageBody

Returns a new instance of InvalidMessageBody.

Parameters:

  • msg_type

    type of message that is being parsed/serialized.

  • info (defaults to: 'invalid format')

    contains context information to occured error.



56
57
58
# File 'lib/maxcube/messages.rb', line 56

def initialize(msg_type, info = 'invalid format')
  super("message type #{msg_type}: #{info}")
end