X402.Facilitator.Error exception (X402 v0.3.3)

Copy Markdown View Source

Structured error returned by facilitator verify/settle operations.

Summary

Types

Error type identifier.

t()

Types

error_type()

@type error_type() ::
  :finch_unavailable
  | :http_error
  | :insecure_scheme
  | :invalid_json
  | :invalid_option
  | :request_setup_failed
  | :timeout
  | :transport_error
  | :unexpected_response

Error type identifier.

t()

@type t() :: %X402.Facilitator.Error{
  __exception__: true,
  attempt: pos_integer() | nil,
  body: map() | nil,
  reason: term(),
  retryable: boolean(),
  status: non_neg_integer() | nil,
  type: error_type()
}