Interface: IFailure
Properties of a Failure.
Extends
Properties
activityFailureInfo?
optionalactivityFailureInfo?:$Properties|null
Failure activityFailureInfo
Inherited from
$Properties.activityFailureInfo
applicationFailureInfo?
optionalapplicationFailureInfo?:$Properties|null
Failure applicationFailureInfo
Inherited from
$Properties.applicationFailureInfo
canceledFailureInfo?
optionalcanceledFailureInfo?:$Properties|null
Failure canceledFailureInfo
Inherited from
$Properties.canceledFailureInfo
cause?
optionalcause?:$Properties|null
Failure cause
Inherited from
childWorkflowExecutionFailureInfo?
optionalchildWorkflowExecutionFailureInfo?:$Properties|null
Failure childWorkflowExecutionFailureInfo
Inherited from
$Properties.childWorkflowExecutionFailureInfo
encodedAttributes?
optionalencodedAttributes?:$Properties|null
Alternative way to supply message and stack_trace and possibly other attributes, used for encryption of
errors originating in user code which might contain sensitive information.
The encoded_attributes Payload could represent any serializable object, e.g. JSON object or a Failure proto
message.
SDK authors:
-
The SDK should provide a default
encodeFailureAttributesanddecodeFailureAttributesimplementation that: -
Uses a JSON object to represent
{ message, stack_trace }. -
Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
-
Overwrites the original stack_trace with an empty string.
-
The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed by the user-provided PayloadCodec
-
If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes. (-- api-linter: core::0203::optional=disabled --)
Inherited from
failureInfo?
optionalfailureInfo?:"applicationFailureInfo"|"timeoutFailureInfo"|"canceledFailureInfo"|"terminatedFailureInfo"|"serverFailureInfo"|"resetWorkflowFailureInfo"|"activityFailureInfo"|"childWorkflowExecutionFailureInfo"|"nexusOperationExecutionFailureInfo"|"nexusHandlerFailureInfo"
Failure failureInfo
Inherited from
message?
optionalmessage?:string|null
Failure message
Inherited from
nexusHandlerFailureInfo?
optionalnexusHandlerFailureInfo?:$Properties|null
Failure nexusHandlerFailureInfo
Inherited from
$Properties.nexusHandlerFailureInfo
nexusOperationExecutionFailureInfo?
optionalnexusOperationExecutionFailureInfo?:$Properties|null
Failure nexusOperationExecutionFailureInfo
Inherited from
$Properties.nexusOperationExecutionFailureInfo
resetWorkflowFailureInfo?
optionalresetWorkflowFailureInfo?:$Properties|null
Failure resetWorkflowFailureInfo
Inherited from
$Properties.resetWorkflowFailureInfo
serverFailureInfo?
optionalserverFailureInfo?:$Properties|null
Failure serverFailureInfo
Inherited from
source?
optionalsource?:string|null
The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK In some SDKs this is used to rehydrate the stack trace into an exception object.
Inherited from
stackTrace?
optionalstackTrace?:string|null
Failure stackTrace
Inherited from
terminatedFailureInfo?
optionalterminatedFailureInfo?:$Properties|null
Failure terminatedFailureInfo
Inherited from
$Properties.terminatedFailureInfo
timeoutFailureInfo?
optionaltimeoutFailureInfo?:$Properties|null
Failure timeoutFailureInfo