exception refers to the various conditions, such as: file cannot be found, network connection failure, illegal parameters and so on.An exception is an event that interferes with the normal instruction flow during the program's run.Java describes
1. Preface Try...catch...finally I'm afraid it's a familiar statement, and it's very simple to use, logically it seems to be easy to understand. However, I personally experience the "lesson" tells me that this thing is not as simple as the
1. Background Introduction
Why do you want to do exception handling?
For a computer program, no one can guarantee that it will run without error, the main source of error is the following:
Code Error
User illegal input
Device errors
Visual C + + exception (Exception) FAQCopyright: Doug Harrison 2001–2007Translation: Magictong (Tong Lei) March 2011Original address: http://members.cox.NET/doug_web/eh.htmThis article discusses some of the implementations in Visual C + + about try{}
The abnormally large classification is divided into detection anomaly (checked exception) and non-detectable anomaly (unchecked exception). The detection exception is the exception that can be found in the compiler.
Non-detectable anomaly also
Oracle Developer is famous for its rapid data processing and development, and its exception handling mechanism is also relatively complete.
1. Advantages of exceptions
If no exception occursProgramCheck whether each command succeeds or fails,
PHP exception handling, error throwing and error callback function, exception handling callback function
Error, Exception level constants table
Error: The run-time error cannot be found at compile time, instead of trying to output an unassigned
OverviewIn general, enterprise-level applications are corresponding to complex business logic, in order to ensure the robustness of the system, it is necessary to face a variety of system business anomalies and run-time anomalies.Bad exception
PHP5 provides a new object-oriented error handling method. Exception handling is used to change the normal process of the script when a specified error (exception) occurs. This is called an exception. First, you need to know what is a PHP exception?
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.