ExWapp.Error exception (ExWapp v0.1.2)

Copy Markdown View Source

Structured error returned by high-level ExWapp client operations.

The :operation field names the public API call, while :phase narrows the failure to the protocol/integration step that failed.

Summary

Types

t()

@type t() :: %ExWapp.Error{
  __exception__: term(),
  message_id: String.t() | nil,
  metadata: map(),
  operation: atom(),
  phase: atom() | nil,
  reason: term(),
  trace_id: term() | nil
}

Functions

new(operation, phase, reason, opts \\ [])

@spec new(atom(), atom() | nil, term(), keyword()) :: t()

Builds an ExWapp error.