Exception: MessagePack::Rpc::ProtocolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/msgpack/rpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, data = nil) ⇒ ProtocolError

Returns a new instance of ProtocolError.



15
16
17
18
# File 'lib/msgpack/rpc.rb', line 15

def initialize(msg, data = nil)
  super(msg)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



20
21
22
# File 'lib/msgpack/rpc.rb', line 20

def data
  @data
end