AbsinthePermission.UnauthorizedError exception (AbsinthePermission v1.0.0)

Copy Markdown View Source

Raised (or returned as a tagged error) when a caller is not authorised to perform an operation.

This exception is also used as the GraphQL error payload for denied operations. The :message, :field, and :permission fields are surfaced to the client.

Summary

Types

t()

@type t() :: %AbsinthePermission.UnauthorizedError{
  __exception__: true,
  field: atom() | nil,
  message: binary(),
  permission: binary() | nil,
  reason: atom() | nil
}