Interface FailureWithReason
interface FailureWithReason {
cause: "failure" | "FailWorkflow" | "retries exhausted";
error?: undefined;
errorMessage?: undefined;
reason: Reason;
}
cause: "failure" | "FailWorkflow" | "retries exhausted";
error?: undefined;
errorMessage?: undefined;
reason: Reason;
}
Properties
Readonlycause
cause: "failure" | "FailWorkflow" | "retries exhausted"
Why the journey failed.
Optional Readonlyerror
error?: undefined
Never present: a reason explains this failure, not an error.
Optional Readonlyerror Message
errorMessage?: undefined
Never present: a reason explains this failure, not an error.
Readonlyreason
The reason the step or the hook gave.
A failure explained by a reason: the last attempt reported a failure, or a hook returned
FailWorkflow.