14.53 RAISE Statement
The RAISE
statement explicitly raises an exception.
Outside an exception handler, you must specify the exception name. Inside an exception handler, if you omit the exception name, the RAISE
statement reraises the current exception.
Topics
Syntax
raise_statement ::=
Semantics
exception
Name of an exception, either predefined (see Table 12-3) or user-declared (see "Exception Declaration").
exception
is optional only in an exception handler, where the default is the current exception (see "Reraising Current Exception with RAISE Statement").
Examples
-
Example 12-10, "Declaring, Raising, and Handling User-Defined Exception"
-
Example 12-11, "Explicitly Raising Predefined Exception"
-
Example 12-12, "Reraising Exception"
Related Topics
In this chapter:
In other chapters: