Skip to main content

Class: TemporalFailure

common.TemporalFailure

Represents failures that can cross Workflow and Activity boundaries.

Never extend this class or any of its children.

The only child class you should ever throw from your code is ApplicationFailure.

Hierarchy

  • Error

    TemporalFailure

Constructors

constructor

new TemporalFailure(message?, cause?)

Parameters

NameType
message?null | string
cause?Error

Overrides

Error.constructor

Properties

cause

Optional Readonly cause: Error


failure

Optional failure: IFailure

The original failure that constructed this error.

Only present if this error was generated from an external operation.


message

message: string

Inherited from

Error.message


name

name: string

Inherited from

Error.name


stack

Optional stack: string

Inherited from

Error.stack


prepareStackTrace

Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

Inherited from

Error.prepareStackTrace


stackTraceLimit

Static stackTraceLimit: number

Inherited from

Error.stackTraceLimit

Methods

captureStackTrace

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace