GoCardlessClient.Error exception (GoCardlessClient v2.0.0)

Copy Markdown View Source

Network-level and SDK-level errors (not API errors).

Summary

Types

reason()

@type reason() ::
  :timeout | :circuit_open | :budget_exhausted | {:network, Exception.t()}

t()

@type t() :: %GoCardlessClient.Error{
  __exception__: true,
  message: String.t(),
  reason: reason()
}

Functions

budget_exhausted()

@spec budget_exhausted() :: t()

circuit_open()

@spec circuit_open() :: t()

network(e)

@spec network(Exception.t()) :: t()

timeout()

@spec timeout() :: t()