class

JSON::RPC::TransportError

Inherits JSON::RPC::Exception < Exception < Reference < Object

Raised when the underlying transport (HTTP, socket, …) fails before a well-formed JSON-RPC response could be obtained.

Constructors

new(message : String, status : Int32 | Nil = nil)
Source

Instance methods

status

The transport-specific status code, when one is available (e.g. an HTTP status). nil for transports that have no notion of a status code.

Source