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


Chapter 3 Tools : $EXCEPTIONOBJECT

$EXCEPTIONOBJECT
Returns the name of the object (for example, a table) associated with the last exception signalled within the current transaction, if that exception is of the type that can be trapped with an ON exception_name object_name: statement. (F)
Invocation
exception_object = $EXCEPTIONOBJECT
 
Usage Note
$EXCEPTIONOBJECT returns a null string under the following conditions:
Example
This rule uses $EXCEPTIONOBJECT.

 
TESTEXCEPTION_2;
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ GET TABLES WHERE NAME = 'DOESNOTEXIST'; | 1
_ |
_ ---------------------------------------------------------------------------
_ ON ERROR: |
_ CALL ENDMSG('Exception = "' || $EXCEPTION || |
_ '" object = "' || $EXCEPTIONOBJECT || '"') |

 
The resulting end message is shown here:
Exception = "GETFAIL" object = "TABLES"
See Also
The $EXCEPTION shareable tool.

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