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
| Name | Type | Description |
|---|---|---|
message | string | - |
activityId | string | ID of the Activity that failed to start. |
runId | string | Run 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
| Name | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
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
| Name | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace