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

Part Number E25519-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
PDF · Mobi · ePub
LNPLS01387

Exception Declaration

An exception declaration declares the name of a user-defined exception. You can use the EXCEPTION_INIT pragma to assign this name to an internally defined exception.

LNPLS1191Topics

Syntax

LNPLS1062exception_declaration ::=

Description of exception_declaration.gif follows
Description of the illustration exception_declaration.gif

Semantics

LNPLS1063exception

Name of the exception that you are declaring.

LNPLS1192Restriction on exception

You can use exception only in an EXCEPTION_INIT pragma, RAISE statement, RAISE_APPLICATION_ERROR invocation, or exception handler.

Caution:

Oracle recommends against using a predefined exception name for exception. For details, see "Redeclared Predefined Exceptions". For a list of predefined exception names, see Table 11-3.

Examples

Related Topics

LNPLS1193In this chapter:

LNPLS1194In other chapters:

Reader Comment

   

Comments, corrections, and suggestions are forwarded to authors every week. By submitting, you confirm you agree to the terms and conditions. Use the OTN forums for product questions. For support or consulting, file a service request through My Oracle Support.

Hide Navigation

Quick Lookup

Database Library · Master Index · Master Glossary · Book List · Data Dictionary · SQL Keywords · Initialization Parameters · Advanced Search · Error Messages

Main Categories

This Document

New and changed documents:
RSS Feed HTML RSS Feed PDF