Class: ActivityFailure
client.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 is TimeoutFailure.
This exception is expected to be thrown only by the framework code.
Hierarchy
↳
ActivityFailure
Constructors
constructor
• new ActivityFailure(activityType
, activityId
, retryState
, identity
, cause?
)
Parameters
Name | Type |
---|---|
activityType | string |
activityId | undefined | string |
retryState | RetryState |
identity | undefined | string |
cause? | Error |
Overrides
Properties
activityId
• Readonly
activityId: undefined
| string
activityType
• Readonly
activityType: string
cause
• Optional
Readonly
cause: Error
Inherited from
failure
• Optional
failure: IFailure
The original failure that constructed this error.
Only present if this error was generated from an external operation.
Inherited from
identity
• Readonly
identity: undefined
| string
message
• message: string
Inherited from
name
• Readonly
name: string
Inherited from
retryState
• Readonly
retryState: RetryState
stack
• Optional
stack: string
Inherited from
prepareStackTrace
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
Optional override for formatting stack traces
Type declaration
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
see
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Parameters
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns
any
Inherited from
TemporalFailure.prepareStackTrace
stackTraceLimit
▪ Static
stackTraceLimit: number
Inherited from
TemporalFailure.stackTraceLimit
Methods
captureStackTrace
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void