Exception Handling

When a problem, error, or abnormal condition occurs in a code block, the focus of the program is shifted to the exception section. Oracle moves through the statements within this section, looking for an exception handler—a structure that provides Oracle with directions that should be followed for a particular error. If Oracle cannot find an exception handler, the procedure will be terminated abnormally, and all work that the procedure completed will be rolled back. This section discusses the exception section of the code block and exception handlers.

Predefined SQL Exceptions

Oracle has a large array of exceptions that can occur—many more exceptions than can be considered here. However, Oracle has predefined several exceptions ...

Get Oracle SQL and PL/SQL Handbook: A Guide for Data Administrators, Developers, and Business Analysts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.