When a step fails
If a step’s function throws, the SDK saves the error and throws aStepError with the same message. Leave it, and the run fails. Catch it to go another way:
StepError without running again. Your code takes the same path each time.
When a run fails
A run fails when your workflow throws. Its message shows under Error on the run’s page. Nelkap can also stop a run, with a reason of its own. See Errors.When Nelkap turns a call down
run and emit throw a NelkapError that names the reason. Inside a workflow, a step Nelkap turns down throws one too. See Errors.