It is currently not possible to pass additional variables from an error event, such as a detailed error message, etc., to the catching execution.
This applies to
- error events
- code that throws BpmnError, such as delegates, listeners, etc.
In particular, if you have a catch-all error handler, then it is not possible to find out which error was caught.
The catching error handler defines the name of a Variable into which the error code of a message can be mapped:
The variable with name "someVariableName" will then contain the error code of the error which was caught.