Error Event
Introduction
An error event defines where a microflow will stop and throw a new error based on the error that occurred earlier. If you call a microflow, you may want to know whether any errors occurred within the microflow or not.
When you use this event, it creates a new error with the same information as the original error. Because this is a new error, even if the error that occurred earlier was caught without rollback, all database actions within the current microflow will be rolled back. In addition, other database changes might be rolled back depending on how the error is handled in the calling microflow. For more information, see Error Handling in Microflows.
Example of Error Event
In the example below, an error flow is defined when performing a Mendix commit. Any error is caught, and the flow continues to the error event where the error is passed back to the caller of the microflow. This allows you to implement your error handling on multiple levels.