Class: NexusOperationFailure
common.NexusOperationFailure
Thrown when a Nexus Operation executed inside a Workflow fails.
Nexus support in Temporal SDK is experimental.
Hierarchy
-
↳
NexusOperationFailure
Constructors
constructor
• new NexusOperationFailure(message, scheduledEventId, endpoint, service, operation, operationToken, cause?): NexusOperationFailure
Parameters
| Name | Type |
|---|---|
message | undefined | string |
scheduledEventId | undefined | number |
endpoint | string |
service | string |
operation | string |
operationToken | undefined | string |
cause? | Error |
Returns
Overrides
Properties
cause
• Optional Readonly cause: Error
Inherited from
endpoint
• Readonly endpoint: string
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
operation
• Readonly operation: string
operationToken
• Readonly operationToken: undefined | string
scheduledEventId
• Readonly scheduledEventId: undefined | number
service
• Readonly service: string
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