 |
|
Innovation award
 Nominee: 6x |
This package can be used to turn PHP run-time errors into catchable exceptions.
It sets the PHP error handler function to point to a class function that will throw exceptions when an error occurs.
The class throws exceptions of different classes according to the type of PHP error that occurred.
All exception classes are derived from a common base class that can return the details about the script and the line of the code on which the error occurred.
|
|
| Name: |
Package Exception Error |
| Base name: |
exceptionerror |
| Description: |
Turn PHP errors into catchable exceptions |
| Version: |
1.0 |
| PHP version: |
5.1 |
| License: |
GNU Lesser General Public License (LGPL) |
| All time users: |
1403 users |
| All time rank: |
2433 |
| Week users: |
2 users |
| Week rank: |
1279  |
| |
|
 November 2007
Number 2
Prize: One subscription to the PDF edition of the magazine by PHP Architect |
Exception handling is one of the most important features introduced in PHP 5. Exceptions allow separating error handling from normal application program code.
Before PHP 5, runtime errors could be thrown with functions like trigger_error and catched with registered error handling functions.
This package makes it easier to migrate legacy PHP applications and components to use exceptions to catch recoverable errors thrown with PHP 4 error handling functions.
Manuel Lemos |
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|