Alternera.Resource.Errors.Referenced exception (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

A delete refused because other records still reference the record through a foreign key (ON DELETE RESTRICT). Renders as JSON:API 409 referenced. Alternera.Resource.Changes.RefuseReferencedDelete turns AshPostgres's "would leave records behind" into it.

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Alternera.Resource.Errors.Referenced{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Alternera.Resource.Errors.Referenced without raising it.

Keys

  • :resource