Assent.Strategy.CallbackError exception (Assent v0.4.0)

Copy Markdown View Source

An exception for an error reported or detected during an authorization callback.

The :params field is omitted from Inspect output as it may contain sensitive data.

Fields

  • :message - a description of the error
  • :params - the callback parameters associated with the error

Examples

iex> error = Assent.Strategy.CallbackError.exception(message: "error", params: %{"a" => 1})
iex> Exception.message(error)
"error"
iex> error.params
%{"a" => 1}
iex> inspect(error)
"#Assent.Strategy.CallbackError<message: \"error\", ...>"

Summary

Types

t()

@type t() :: %Assent.Strategy.CallbackError{
  __exception__: term(),
  message: binary(),
  params: map()
}