FatalError
When a FatalError is thrown in a step, it indicates that the workflow should not retry a step, marking it as failure.
You should use this when you don't want a specific step to retry.
import { FatalError } from "workflow"
async function fallibleWorkflow() {
"use workflow"
await fallibleStep();
}
async function fallibleStep() {
"use step"
throw new FatalError("Fallible!")
}API Signature
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The error message. |