There are various ways to achieve this but, the simplest will be to put a try catch around every statement or block you want to catch exception and wrap them. It goes like this
Flow Detail
1 SEQUENCE (FAILURE)
1.1 SEQUENCE (STEP 1 (SUCCESS) - Try / Catch)
1.11 SEQUENCE (FAILURE - Try)
Do something here
1.12 SEQUENCE (DONE - Catch)
Get last error and wrap it up in a structure
1.2 SEQUENCE STEP 2 (SUCCESS) - Try / Catch
1.21 SEQUENCE (FAILURE - Try)
Do something else here
1.22 SEQUENCE (DONE - Catch)
Get last error and wrap it up in a structure
1.3 SEQUENCE STEP 3 (work with your errors)
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods