Penstock

Guide / Every rule

Nothing in the code throws the error a step catches

The check code/never-thrown, in the group Diagrams and code.

AdvicePro

Why it matters

An error boundary or error event catches a code that no BpmnError or error command in the project throws, so it never fires.

How to fix it

Throw the error code from the worker, or correct the code on the event.

Where you see it

The Problems tab lists it under Code. In a terminal, penstock code reports it with the file and line. This check is part of Penstock Pro, and Team in a pipeline.

Rule details

Idcode/never-thrown
GroupDiagrams and code
LevelAdvice: it works, and reads or runs better without it

Read more: Code links. All rules: Every rule.