WorkflowFailure
Purpose and behavior
Section titled “Purpose and behavior”Error thrown by WorkflowResult.unwrap() when status is not done. result holds the whole WorkflowResult and cause is its first error.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”resultRequiredWorkflowResultThe unsuccessful WorkflowResult, with its task records, errors and usage.nameRequiredstringError class name used to distinguish this failure from other JavaScript errors.messageRequiredstringHuman-readable explanation of the failure.stackOptionalstring | undefinedJavaScript stack trace for the error, when available.causeOptionalunknownUnderlying failure this error wraps; quotaFault() and unavailableFault() follow this chain.