Pristine.OAuth2.Error exception (Pristine v0.4.0)

Copy Markdown View Source

Error returned by the Pristine OAuth2 control-plane helpers.

Summary

Types

t()

@type t() :: %Pristine.OAuth2.Error{
  __exception__: true,
  body: term(),
  headers: map(),
  message: String.t(),
  provider: term(),
  reason: atom(),
  status: integer() | nil
}

Functions

new(reason, opts \\ [])

@spec new(atom(), keyword()) :: t()