PHP Exception Level Analysis

Source: Internet
Author: User
This article is mainly to share with you the PHP exception level analysis, hope to help everyone.

Deprecated The lowest level of errors (not recommended, not recommended)
When you use some of the expiration functions, the program continues to execute
Notice Notification-level errors
Use some undefined variable, constant, or array key to appear without quotation marks, and the program continues to execute
waning Warning level error
program problems, need to modify the code!!! The program continues to execute
Fatal error at error level
Program direct error, need to modify the code!!! Interrupt program execution, you can use the Register_shutdown_function () function to trigger a function before the program terminates
Parse error Syntax parsing errors
Grammar check stage error, need to modify code!!! Interrupt program execution, in addition to modifying the INI file, write error messages to the log, nothing can be done
E_user_ Related errors
User-defined error, user manually throwing error, custom error handling
PHP Exceptions and errors thrown
Exception throw: throw new Exception (' Some Error Message ');
Error thrown: Trigger_error ()
Trigger_error () Triggered errors are not captured by the Try-catch exception capture statement.

Related recommendations:

Exception level in PHP

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.