EXCEPTION Element 
You use the EXCEPTION element to catch an exception raised in a called module and jump to a particular state or template.
Use ABAP exception handling, see the example below.
In the flow file in the standalone ITS, the syntax is as follows:
Syntax
state name="myState">
<module name="myModule" type="RFC">
<exception name="myException"
next_template="error">
</exception>
</module>
</state>