Login   Register  
PHP Classes

Package Exception Error: Turn PHP errors into catchable exceptions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,471 All time: 2,473 This week: 1,398Up
Version License PHP version Categories  
exceptionerror 1.0GNU Lesser General Publ...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
Age: 42
All time rank: 412 in France France
Week rank: 160 Down9 in France France Down
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,471All time:2,473
 This week:0This week:1,398Up
 User Comments (1)