Exception: RailsCryptoPayment::EvmRpc::RpcError
- Inherits:
-
RailsCryptoPayment::Error
- Object
- StandardError
- RailsCryptoPayment::Error
- RailsCryptoPayment::EvmRpc::RpcError
- Defined in:
- lib/rails_crypto_payment/evm_rpc.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ RpcError
constructor
A new instance of RpcError.
Constructor Details
#initialize(code, message) ⇒ RpcError
Returns a new instance of RpcError.
14 15 16 17 |
# File 'lib/rails_crypto_payment/evm_rpc.rb', line 14 def initialize(code, ) @code = code super("RPC error #{code}: #{message}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/rails_crypto_payment/evm_rpc.rb', line 12 def code @code end |