Skip to main content

Class: ApplicationError

An application failure: raised by activities or workflow code. Fails the run when thrown from a workflow.

Extends​

Extended by​

Constructors​

Constructor​

new ApplicationError(message, options?): ApplicationError

Parameters​

message​

string

options?​

ApplicationErrorOptions

Returns​

ApplicationError

Overrides​

WorkflowFailure.constructor

Properties​

category​

readonly category: "BENIGN"


cause?​

optional cause?: unknown

Inherited from​

WorkflowFailure.cause


details​

readonly details: Json


errorType​

readonly errorType: ErrorType

The shared error type the engine classifies this failure as.

Inherited from​

WorkflowFailure.errorType


message​

message: string

Inherited from​

WorkflowFailure.message


name​

name: string

Inherited from​

WorkflowFailure.name


nextRetryDelayMs​

readonly nextRetryDelayMs: number


nonRetryable​

readonly nonRetryable: boolean


stack?​

optional stack?: string

Inherited from​

WorkflowFailure.stack


type​

readonly type: string