View Source StarkNet.ClientError exception (StarkNet v0.2.0)

Represent an error when running a client request.

Link to this section Summary

Functions

Callback implementation for Exception.message/1.

Link to this section Types

Specs

reason() ::
  :too_many_requests
  | :internal_server_error
  | :unknown
  | :timeout
  | :closed
  | :protocol_not_negotiated
  | {:bad_alpn_protocol, String.t()}
  | :inet.posix()

Specs

t() :: %StarkNet.ClientError{
  __exception__: term(),
  inner: any(),
  reason: reason()
}

Link to this section Functions

Specs

message(t()) :: String.t()

Callback implementation for Exception.message/1.