Exception: MessagePack::Rpc::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- MessagePack::Rpc::ProtocolError
- Defined in:
- lib/msgpack/rpc.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(msg, data = nil) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
20 21 22 |
# File 'lib/msgpack/rpc.rb', line 20 def data @data end |