Ash.Error.Forbidden exception (ash v3.4.68)

View Source

Used when authorization for an action fails

Summary

Functions

Create an Elixir.Ash.Error.Forbidden without raising it.

Callback implementation for Exception.message/1.

Types

t()

@type t() :: %Ash.Error.Forbidden{
  __exception__: true,
  action_input: Ash.ActionInput.t() | nil,
  bread_crumbs: term(),
  changeset: Ash.Changeset.t() | nil,
  class: term(),
  errors: term(),
  path: term(),
  query: Ash.Query.t() | nil,
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Ash.Error.Forbidden{
  __exception__: true,
  action_input: term(),
  bread_crumbs: term(),
  changeset: term(),
  class: term(),
  errors: term(),
  path: term(),
  query: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Ash.Error.Forbidden without raising it.

Keys

  • :changeset
  • :query
  • :action_input
  • :errors

message(map)

Callback implementation for Exception.message/1.