Errors are used by error catching events and error throwing events to model business exceptions in a BPMN process. Errors can be created and managed at the individual error-event level or at the diagram level. Unlike process variables, errors can be shared between process definitions in the same diagram. In BPMN, an error definition represents a business exception that the process can throw and catch.
An error definition can be referenced by one or more BPMN error events. A thrown error is matched to a catching error event by its error code. In BPMN, errors are typically thrown using an error end event and caught using an error boundary event or an error event subprocess. A caught error interrupts the normal path and redirects the process to the exception-handling flow.
Use errors to model business exceptions that require a defined alternate process path, such as invalid input, a failed validation, or a business rule that prevents the process from continuing normally. BPMN error events are intended for business exceptions rather than general technical failures. Common business examples are: invalid customer data or approval rejected.
To manage all errors in a diagram: