Exception: MaxCube::Messages::InvalidMessageType
- Inherits:
-
InvalidMessage
- Object
- RuntimeError
- InvalidMessage
- MaxCube::Messages::InvalidMessageType
- Defined in:
- lib/maxcube/messages.rb
Overview
Exception class that denotes unrecognized message type.
Instance Method Summary collapse
-
#initialize(msg_type, info = 'invalid message type') ⇒ InvalidMessageType
constructor
A new instance of InvalidMessageType.
Constructor Details
#initialize(msg_type, info = 'invalid message type') ⇒ InvalidMessageType
Returns a new instance of InvalidMessageType.
37 38 39 |
# File 'lib/maxcube/messages.rb', line 37 def initialize(msg_type, info = 'invalid message type') super("#{info}: #{msg_type}") end |