Oracle® Database PL/SQL Language Reference 11g Release 2 (11.2) Part Number E10472-02 |
|
|
View PDF |
An exception declaration declares a user-defined exception.
You must raise a user-defined exception explicitly with either a RAISE
statement or the DBMS_STANDARD
.RAISE_APPLICATION_ERROR
procedure. The latter lets you associate an error message with the user-defined exception.
Topics:
Syntax
exception_declaration ::=
Semantics
exception_name
The name of the exception that you are declaring.
Caution:
Using the name of a predefined exception forexception_name
is not recommended. For details, see "Redeclaring Predefined Exceptions". For the names of a predefined exceptions, see Table 11-2.Examples
Example 7-13, "Validation Checks Guarding Against SQL Injection"
Example 8-1, "Declaring, Defining, and Invoking a Simple PL/SQL Procedure"
Related Topics
In this chapter:
In other chapters: