Oracle -- plsql Exception Handling

Source: Internet
Author: User
Errors in Oracle are usually divided into compile-time errors and run-time errors. Exceptions occur during PLSQL execution.

Errors in Oracle are usually divided into compile-time errors and run-time errors. Exceptions occur during PL/SQL Execution.

When the sub-block handles exceptions by itself, it can be terminated normally, and the control can be handed over to the external block immediately after the END statement of the sub-block.

However, if PL/SQL encounters an exception but the current block does not have a processor for the exception, it will find whether the external block has a processor, if no external block can handle this exception, an unhandled exception will occur in the host environment.

When an exception is transmitted to an external block, the code waiting for execution in the current block is no longer executed.

The advantage of this method is that the internal block only handles its own unique errors and leaves the general exception handling to the external block.

Raise_Application_ErrorProcess

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.