Error events trigger errors in process execution and to respond to them.
BPMN 1
If an end event of the Error type occurs in a process, an error with the defined name is output (BPMN 1.0 attribute, Error code attribute). If the name has not been specified, the model is invalid. The error activates the intermediate event of the Error type at the border of the superior activity if the Error code attribute (BPMN attribute type group) has not been specified or contains a value that matches the error that was output. All activities within this activity are discarded without compensation.
BPMN 2
If an end event of the Error event type occurs in a process, an error is output. An intermediate event of the Error event type on the border of the superior activity, or a start event of the Error event type at the beginning of an event subprocess in the executed subprocess can respond to that error. The catch event is activated if it does not have an occurrence copy, or if it is an occurrence copy of the throw event. As soon as the event is triggered, all activities within the activity are discarded without compensation.