# `Assent.Strategy.CallbackError`
[🔗](https://github.com/pow-auth/assent/blob/v0.4.0/lib/assent/strategy.ex#L33)

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\", ...>"

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
