mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-07 22:46:39 +02:00
Merge pull request #282 from aranw/errors-exceptions
Errors and Exceptions
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
auto: true
|
||||
safe: true
|
||||
server: true
|
||||
server_port: 4000
|
||||
baseurl: /
|
||||
url: http://localhost:4000
|
||||
|
||||
|
6
_posts/07-01-01-Errors-and-Exceptions.md
Normal file
6
_posts/07-01-01-Errors-and-Exceptions.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Errors and Exceptions
|
||||
---
|
||||
|
||||
# Errors and Exceptions {#errors_and_exceptions_title}
|
||||
|
11
_posts/07-02-01-Errors.md
Normal file
11
_posts/07-02-01-Errors.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
isChild: true
|
||||
---
|
||||
|
||||
## Errors {#errors_title}
|
||||
|
||||
PHP has several levels of error severity. The three most common types of messages are errors, notices and warnings. These have different levels of severity; `E_ERROR`, `E_NOTICE`, and `E_WARNING`. Errors are fatal run-time errors and are usually caused by faults in your code and need to be fixed as they'll cause PHP to stop executing. Warnings are non-fatal errors, execution of the script will not be halted. Notices are advisory messages caused by code that may or may not cause problems during the execution of the script, execution is not halted.
|
||||
|
||||
Another type of error message reported at compile time is the `E_STRICT` message, these messages are used to suggest changes to your code to help ensure best interoperability and forward compatibility for your code.
|
||||
|
||||
* [Predefined Constants for Error Handling](http://www.php.net/manual/en/errorfunc.constants.php)
|
Reference in New Issue
Block a user