Temporalex.ApplicationError exception (Temporalex v0.3.2)

Copy Markdown View Source

Generic application-level failure raised from inside an activity or workflow.

When raised in an activity body, the worker translates it into a Temporal ApplicationFailureInfo with the given type, message, non_retryable, and details fields. The workflow sees it wrapped in a Temporalex.ActivityFailure whose cause is this struct.

Setting non_retryable: true instructs Temporal not to retry the activity even if the activity's retry policy would otherwise allow another attempt.

Summary

Functions

Convenience constructor: ApplicationError.new("boom", type: "InvalidSku", non_retryable: true).

Types

t()

@type t() :: %Temporalex.ApplicationError{
  __exception__: true,
  details: term() | nil,
  message: String.t(),
  non_retryable: boolean(),
  type: String.t() | nil
}

Functions

new(message, opts \\ [])

Convenience constructor: ApplicationError.new("boom", type: "InvalidSku", non_retryable: true).