Exception: MaxCube::Messages::InvalidMessageType

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

Overview

Exception class that denotes unrecognized message type.

Instance Method Summary collapse

Constructor Details

#initialize(msg_type, info = 'invalid message type') ⇒ InvalidMessageType

Returns a new instance of InvalidMessageType.

Parameters:

  • msg_type

    type of message that is being parsed/serialized.

  • info (defaults to: 'invalid message type')

    contains context information to occured error.



37
38
39
# File 'lib/maxcube/messages.rb', line 37

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