There are different types of strategies available in mule to configure exceptions.
If we did not configure the exception strategy to the flow. then the exception will be handled by Mule Default Message exception strategy.
catchExceptionStrategy like similar to handling exception in Java using
<logger message=”Exception occured” level=”INFO” doc:name=”Logger”/>
It will handle all the exceptions. if you want to handle each exception in a different manner then need to choose choiceExceptionStrategy.
if you define exception strategy inside flow the scope of strategy is up to the flow. the flow won’t be available in other flows.
To make the flow available to al flows, the strategy need to declare exception on global scope rather flow scope. the refer the strategy in the flow using ReferenceExceptionStrategy.
we can override Mule default exception strategy by declaring the exception strategy at global scope and marking it as default using configuration tag
Code examples available at Day-8.zip at