Skip to main content

Interface: Failure

A failure as it is stored in history and passed between the SDK, the service and the workers (11 §2.25). type is the free-form application type; errorType is always one value of the shared enum.

Properties​

category?​

optional category?: "BENIGN"


cause?​

optional cause?: Failure


details?​

optional details?: Json


errorType​

errorType: ErrorType


message​

message: string


nextRetryDelayMs?​

optional nextRetryDelayMs?: number

Overrides the retry policy's delay for the next attempt only.


nonRetryable?​

optional nonRetryable?: boolean


source?​

optional source?: string


stackTrace?​

optional stackTrace?: string


timeoutType?​

optional timeoutType?: string

For timeouts: START_TO_CLOSE, SCHEDULE_TO_START, SCHEDULE_TO_CLOSE, HEARTBEAT, WORKFLOW_RUN, WORKFLOW_EXECUTION.


type?​

optional type?: string