ArchAstro. Error exception
(archastro v0.2.0)
Copy Markdown
Typed REST API or transport error.
Summary
Types
@type reason() :: t() | transport_reason()
@type t() :: %ArchAstro.Error{ __exception__: term(), code: String.t() | nil, details: ArchAstro.JSON.t() | nil, message: String.t(), reason: transport_reason() | nil, request_id: String.t() | nil, status: integer() | nil }
@type transport_reason() :: Exception.t() | atom() | tuple()
Functions
@spec channel(ArchAstro.JSON.t() | transport_reason() | t()) :: t()
@spec from_response(Req.Response.t()) :: t()
@spec transport(transport_reason()) :: t()