type

TaskError

Stable local durable-task boundary error.

Properties

PropertyTypeDescription
CodeTaskErrorCodeThe stable machine-readable failure category.
MessagestringThe safe human-readable failure summary.
CauseerrorThe trusted wrapped cause for local diagnostics.

How it works

TaskError implements Error and Unwrap for local runtime, store, and codec failures. Handler failures use RetryTask, RetryTaskAfter, or AbortTask; their bounded messages are persisted on durable task state instead.

Full signature

type TaskError struct { Code TaskErrorCode Message string Cause error }

Source core/task.go:335

Methods