Dowser. Client. HTTP. Error exception
(Dowser.Client v0.3.0)
View Source
HTTP transport error.
Wraps whatever Dowser.Client.HTTP surfaced — :httpc's own reason
(:timeout, :socket_closed_remotely, a :failed_connect tuple, a TLS
{:tls_alert, _}) or one of the transport's ({:unsupported_body, method},
{:unknown_http_opts, keys}, {:no_cacerts, _}, {:profile_down, _}) — so
callers handle one exception type. The original term is kept in :reason,
and :profile records which :httpc profile the request went through.
Summary
Types
@type t() :: %Dowser.Client.HTTP.Error{ __exception__: true, attempts: pos_integer(), method: atom() | nil, profile: atom() | nil, reason: term(), url: String.t() | nil }