MishkaGervaz.Errors.Action.Failed exception (MishkaGervaz v0.0.1-alpha.2)

Copy Markdown View Source

Raised when an action fails to execute.

Fields

  • :resource - The resource module
  • :action - The action name
  • :reason - The reason for the failure
  • :record_id - Optional ID of the record

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %MishkaGervaz.Errors.Action.Failed{
  __exception__: true,
  action: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  reason: term(),
  record_id: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.MishkaGervaz.Errors.Action.Failed without raising it.

Keys

  • :resource
  • :action
  • :reason
  • :record_id