Exception: Eth::Client::RpcError
- Inherits:
-
IOError
- Object
- IOError
- Eth::Client::RpcError
- Defined in:
- lib/eth/client.rb
Overview
Raised when an RPC call returns an error. Carries the optional hex-encoded error data to support custom error decoding.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message, data = nil) ⇒ RpcError
constructor
Constructor for the RpcError class.
Constructor Details
#initialize(message, data = nil) ⇒ RpcError
Constructor for the Eth::Client::RpcError class.
52 53 54 55 |
# File 'lib/eth/client.rb', line 52 def initialize(, data = nil) super() @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
46 47 48 |
# File 'lib/eth/client.rb', line 46 def data @data end |