Merge pull request #282 from aranw/errors-exceptions

Errors and Exceptions
This commit is contained in:
Josh Lockhart
2013-07-07 13:20:43 -07:00
27 changed files with 17 additions and 3 deletions

View File

@@ -1,7 +1,4 @@
auto: true
safe: true
server: true
server_port: 4000
baseurl: /
url: http://localhost:4000

View 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
View 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)