TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-317
#RAISE Built-In Function
#RAISE Built-In Function
Use #RAISE in a routine to explicitly cause an exception. The exception must be
filtered by some active routine.
exception
can be any of these:
_BREAK
indicates that the BREAK key has been pressed.
_ERROR
indicates that an error has occurred.
user_exception
is any text, 1 to 31 alphanumeric characters in length, of which the first must be
alphabetic.
Result
#RAISE returns nothing.
Consideration
All routines up to and including the one having the exception filter are eliminated, and
the routine that issued #FILTER is reinvoked. You can use #EXCEPTION to deter
mine why the routine was reinvoked. (See the discussion of exception handling in the
TACL Programming Guide and the example fro the #FILTER Built-In Function on
page 9-179.)
#RAISE exception