Skip to main content

Class: ActivityExecutionFailedError

client.ActivityExecutionFailedError

Thrown by the ActivityClient while waiting on Activity execution result if execution completes with failure. The failure is stored in the cause property.

Standalone Activities are experimental. APIs may be subject to change.

Hierarchy

  • Error

    ActivityExecutionFailedError

Constructors

constructor

new ActivityExecutionFailedError(message, cause, activityId, runId?): ActivityExecutionFailedError

Parameters

NameType
messagestring
causeundefined | Error
activityIdstring
runId?string

Returns

ActivityExecutionFailedError

Overrides

Error.constructor

Properties

activityId

Readonly activityId: string


cause

Readonly cause: undefined | Error

Overrides

Error.cause


message

message: string

Inherited from

Error.message


name

name: string

Inherited from

Error.name


runId

Optional Readonly runId: string


stack

Optional stack: string

Inherited from

Error.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

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

Inherited from

Error.prepareStackTrace


stackTraceLimit

Static stackTraceLimit: number

Inherited from

Error.stackTraceLimit

Methods

captureStackTrace

captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace