Skip to main content

Class: ActivityExecutionAlreadyStartedError

client.ActivityExecutionAlreadyStartedError

Thrown when starting an Activity failed because another Activity with the same ID already exists and reusing the ID is not allowed under chosen ID reuse policy and ID conflict policy. See ActivityOptions.idReusePolicy and ActivityOptions.idConflictPolicy.

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

Hierarchy

  • Error

    ActivityExecutionAlreadyStartedError

Constructors

constructor

new ActivityExecutionAlreadyStartedError(message, activityId, runId): ActivityExecutionAlreadyStartedError

Parameters

NameTypeDescription
messagestring-
activityIdstringID of the Activity that failed to start.
runIdstringRun ID of the existing Activity execution with the same Activity ID.

Returns

ActivityExecutionAlreadyStartedError

Overrides

Error.constructor

Properties

activityId

Readonly activityId: string

ID of the Activity that failed to start.


cause

Optional cause: unknown

Inherited from

Error.cause


message

message: string

Inherited from

Error.message


name

name: string

Inherited from

Error.name


runId

Readonly runId: string

Run ID of the existing Activity execution with the same Activity ID.


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