Exception: MaxCube::Messages::InvalidMessageBody
- Inherits:
-
InvalidMessage
- Object
- RuntimeError
- InvalidMessage
- MaxCube::Messages::InvalidMessageBody
- 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
-
#initialize(msg_type, info = 'invalid format') ⇒ InvalidMessageBody
constructor
A new instance of InvalidMessageBody.
Constructor Details
#initialize(msg_type, info = 'invalid format') ⇒ InvalidMessageBody
Returns a new instance of InvalidMessageBody.
56 57 58 |
# File 'lib/maxcube/messages.rb', line 56 def initialize(msg_type, info = 'invalid format') super("message type #{msg_type}: #{info}") end |