Skip Headers
Oracle® Database PL/SQL Language Reference
11g Release 2 (11.2)

Part Number E10472-05
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

Exception

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 ::=

exception_declaration
Description of the illustration exception_declaration.gif

Semantics

exception_name

The name of the exception that you are declaring.

Caution:

Using the name of a predefined exception for exception_name is not recommended. For details, see "Redeclaring Predefined Exceptions". For the names of a predefined exceptions, see Table 11-2.

Examples

Related Topics

In this chapter:

In other chapters: