Class: CancelledFailure
common.CancelledFailure
This error is thrown when Cancellation has been requested. To allow Cancellation to happen, let it propagate. To ignore Cancellation, catch it and continue executing. Note that Cancellation can only be requested a single time, so your Workflow/Activity Execution will not receive further Cancellation requests.
When a Workflow or Activity has been successfully cancelled, a CancelledFailure will be the cause.
Hierarchy
-
↳
CancelledFailure
Constructors
constructor
• new CancelledFailure(message, details?, cause?): CancelledFailure
Parameters
| Name | Type |
|---|---|
message | undefined | string |
details? | unknown[] |
cause? | Error |
Returns
Overrides
Properties
cause
• Optional Readonly cause: Error
Inherited from
details
• Readonly details: unknown[]
failure
• Optional failure: IFailure
The original failure that constructed this error.
Only present if this error was generated from an external operation.
Inherited from
message
• message: string
Inherited from
name
• name: string
Inherited from
stack
• Optional stack: string
Inherited from
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
| Name | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
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
| Name | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void