Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $EXCEPTION

$EXCEPTION
Returns the name of the last exception signalled within the current transaction by either a SIGNAL statement, a $SIGNAL call, or the system (GETFAIL, ZERODIVIDE, and so on). (F)
Invocation
exception_name = $EXCEPTION
 
Usage Note
If no exception is signalled in the transaction, $EXCEPTION returns a null string.
Example
This rule uses $EXCEPTION.

 
TESTEXCEPTION_1;
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ SIGNAL STOP; | 1
_ |
_ ---------------------------------------------------------------------------
_ ON ERROR: |
_ CALL ENDMSG('Exception = "' || $EXCEPTION || |
_ '" object = "' || $EXCEPTIONOBJECT || '"') |

 
The resulting end message is shown here:
Exception = "STOP" object = ""
See Also
The $EXCEPTIONOBJECT shareable tool.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved