Skip to main content

Class: ActivityFailure

common.ActivityFailure

Contains information about an Activity failure. Always contains the original reason for the failure as its cause. For example, if an Activity timed out, the cause will be a TimeoutFailure.

This exception is expected to be thrown only by the framework code.

Hierarchy

Constructors

constructor

new ActivityFailure(message, activityType, activityId, retryState, identity, cause?): ActivityFailure

Parameters

NameType
messageundefined | string
activityTypestring
activityIdundefined | string
retryStateRetryState
identityundefined | string
cause?Error

Returns

ActivityFailure

Overrides

TemporalFailure.constructor

Properties

activityId

Readonly activityId: undefined | string


activityType

Readonly activityType: string


cause

Optional Readonly cause: Error

Inherited from

TemporalFailure.cause


failure

Optional failure: IFailure

The original failure that constructed this error.

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

Inherited from

TemporalFailure.failure


identity

Readonly identity: undefined | string


message

message: string

Inherited from

TemporalFailure.message


name

name: string

Inherited from

TemporalFailure.name


retryState

Readonly retryState: RetryState


stack

Optional stack: string

Inherited from

TemporalFailure.stack


prepareStackTrace

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

Optional override for formatting stack traces

See

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

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

See

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

Inherited from

TemporalFailure.prepareStackTrace


stackTraceLimit

Static stackTraceLimit: number

Inherited from

TemporalFailure.stackTraceLimit

Methods

captureStackTrace

captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

TemporalFailure.captureStackTrace