Dowser.Client.Error exception (Dowser.Client v0.3.0)

View Source

Generic Dowser client error.

Used for failures that are neither HTTP transport nor codec specific — e.g. an unknown context, an invalid :auth/:format/:keys/:decoder/:encoder/:encode/:retry, or a :keys, :decoder or :encoder function that raised while casting a body. Transport failures are Dowser.Client.HTTP.Error; JSON encoding and decoding failures are Dowser.Client.JSON.Error.

Summary

Functions

What replaced an option removed in 0.2.0, as a sentence fragment.

Types

t()

@type t() :: %Dowser.Client.Error{
  __exception__: true,
  message: String.t() | nil,
  reason: term()
}

Functions

removed_option_hint(option)

@spec removed_option_hint(atom()) :: String.t()

What replaced an option removed in 0.2.0, as a sentence fragment.

Shared by this module's messages and the warnings Dowser.Client.Request logs for the removed options it tolerates.