Exception: Solana::Ruby::Kit::Rpc::HttpTransportError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/solana/ruby/kit/rpc/transport.rb

Overview

HTTP error from the transport layer (non-2xx response).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, message) ⇒ HttpTransportError

Returns a new instance of HttpTransportError.



37
38
39
40
# File 'lib/solana/ruby/kit/rpc/transport.rb', line 37

def initialize(status_code, message)
  @status_code = T.let(status_code, Integer)
  super("HTTP #{status_code}: #{message}")
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



34
35
36
# File 'lib/solana/ruby/kit/rpc/transport.rb', line 34

def status_code
  @status_code
end