| Oracle® Database PL/SQL Language Reference 11g Release 1 (11.1) Part Number B28370-05 |
|
|
View PDF |
An exception declaration declares a user-defined exception.
Unlike a predefined exception, a user-defined exception must be raised explicitly with either a RAISE statement or the procedure DBMS_STANDARD.RAISE_APPLICATION_ERROR. The latter lets you associate an error message with the user-defined exception.
Syntax
exception_declaration ::=
Keyword and Parameter Descriptions
exception_name
The name you give to the user-defined exception.
Caution:
Using the name of a predefined exception forexception_name is not recommended. For details, see Redeclaring Predefined Exceptions.Related Topics