AshVault.Errors.MissingScope exception (AshVault v0.2.0)

Copy Markdown View Source

Raised when the encryption scope for a field could not be resolved.

The most common cause is executing an Ash action without a tenant against a resource that uses tenant-scoped encryption.

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %AshVault.Errors.MissingScope{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  field: term(),
  operation: term(),
  path: term(),
  reason: term(),
  resource: term(),
  scope_module: term(),
  splode: term(),
  stacktrace: term(),
  tenant: term(),
  vars: term()
}

Create an Elixir.AshVault.Errors.MissingScope without raising it.

Keys

  • :resource
  • :field
  • :scope_module
  • :reason
  • :tenant
  • :operation