PHP Classes
elePHPant
Icontem

Package Exception Error: Turn PHP errors into catchable exceptions

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-10-18 (9 years ago) RSS 2.0 feedStarStarStarStar 63%Total: 1,498 All time: 2,524 This week: 894Up
Version License PHP version Categories
exceptionerror 1.0GNU Lesser Genera...5.1PHP 5, Language
Description Author

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.

Innovation Award
PHP Programming Innovation award nominee
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
Picture of Johan Barbier
Name: Johan Barbier <contact>
Classes: 17 packages by
Country: France France
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files  
File Role Description
Files folder imageclass (1 file)
Accessible without login Plain text file index.php Test Test file

  Files folder image Files  /  class  
File Role Description
  Accessible without login Plain text file package.exceptions.errors.php Class errorException package

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,498
This week:0
All time:2,524
This week:894Up
User Ratings User Comments (1)
 All time
Utility:93%StarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:-
Tests:62%StarStarStarStar
Videos:-
Overall:63%StarStarStarStar
Rank:875