Catches an error thrown by the Mule application and routes it to the first On-Error component configuration that matches the error type.
The Error Handler component has two child elements, On Error Continue and On Error Propagate, which enable you to configure routes that execute when the error raised in the application matches the type of error configured in the handler. Each handler has its own behavior and works relative to the component that contains it (a Flow or a Try scope):
-
On Error Continue (on-error-continue): executes and uses the result of the execution as the result of its container element (as if the container completed the execution successfully). Any transactions at this point commit successfully.
-
On Error Propagate (on-error-propagate): rolls back any transactions, executes, and uses that result to rethrow the existing error. In this case, the container element "fails" its execution.