Skip to main content

Class: WorkflowFailure

Base class of every failure that crosses the history boundary.

Extends​

  • Error

Extended by​

Constructors​

Constructor​

new WorkflowFailure(message, errorType, options?): WorkflowFailure

Parameters​

message​

string

errorType​

ErrorType

options?​
cause?​

unknown

Returns​

WorkflowFailure

Overrides​

Error.constructor

Properties​

cause?​

optional cause?: unknown

Inherited from​

Error.cause


errorType​

readonly errorType: ErrorType

The shared error type the engine classifies this failure as.


message​

message: string

Inherited from​

Error.message


name​

name: string

Inherited from​

Error.name


stack?​

optional stack?: string

Inherited from​

Error.stack