SmsGora.Error exception (SmsGora v1.0.0)

Copy Markdown View Source

Returned when the API answers with an error, or the request fails.

status is the HTTP status (0 when the request never reached the API) and retry_after is the number of seconds to wait after a 429.

Summary

Types

t()

@type t() :: %SmsGora.Error{
  __exception__: true,
  body: term(),
  errors: map() | nil,
  message: String.t(),
  retry_after: number() | nil,
  status: non_neg_integer()
}