Exception: Solana::Client::RpcError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/solana/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: nil) ⇒ RpcError

Returns a new instance of RpcError.



10
11
12
13
# File 'lib/solana/client.rb', line 10

def initialize(message, code: nil)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/solana/client.rb', line 9

def code
  @code
end