CAUGHT() |
|
|
The CAUGHT() function allows an application to test whether there is a handler established for a named exception.
Format
CAUGHT(exception, modes)
where
An exception is a named event, typically an error, raised within an application by use of the THROW statement. The CAUGHT() function returns True or False to indicate whether there is an active exception handler for a given exception name. Exception names are case insensitive and may be up to 32 characters.
The modes argument determines whether special exception handlers are included in the scan. This is an additive bit significant value formed from
A mode value of zero tests strictly for the named handler.
See also: |