When I try to put catch exception strategy at first place in choice exception, it works fine but when i put it at last then it's not working. Below is configuration xml.
It's failing when I put "com.mulesoft.weave.mule.exception.WeaveExecutionException" exception at last place as below.
<choice-exception-strategy name="GlobalChoice_Exception_Strategy">
<catch-exception-strategy when="# [exception.cause.message.toString().contains('Please enter Country')] " doc:name="Catch Exception Strategy">
<set-property propertyName="http.status" value="400" doc:name="Property"/>
<set-payload value=""Please enter country code"" doc:name="Set Payload"/>
</catch-exception-strategy>
<catch-exception-strategy when="# [exception.cause.message.toString().contains('Please enter your Name')]" doc:name="Catch Exception Strategy">
<set-property propertyName="http.status" value="400" doc:name="Property"/>
<set-payload value=""Please enter your name to process request"" doc:name="Set Payload"/>
</catch-exception-strategy>
<catch-exception-strategy when="# [exception.causedBy(com.mulesoft.weave.mule.exception.WeaveExecutionException)]" doc:name="Catch Exception Strategy">
<set-property propertyName="http.status" value="400" doc:name="Property"/>
<set-payload value=""Please enter CustomerIds properly"" doc:name="Set Payload"/>
</catch-exception-strategy>
</choice-exception-strategy>