Error handling
Error-handling components form an important part of Mule’s exception-handling strategy. Whenever an error occurs, or an exception is raised, the flow’s execution control is moved to the Error Handling scope and the error-handling strategy (On Error Continue or On Error Propagate is executed) is implemented (see Figure 4.22):
Figure 4.22 – Mule’s error-handling mechanism
Figure 4.22 shows us the Mule’s error-handling mechanism. Let us now learn about different Error Handling scopes, starting with On Error Continue. Apart from On Error Continue, there is On Error Propagate, Raise Error, and Error Handler.
On Error Continue
If an error occurs and the On Error Continue scope is defined in the Error Handling section, then the flow’s normal execution is stopped and the processors inside the On Error Continue scope are executed.
A success response is returned in the case of On Error Continue.
As...