PHP Classes

Package Exception Error: Turn PHP errors into catchable exceptions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 1,501 All time: 2,608 This week: 206Up
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
Age: 52
All time rank: 402 in France France
Week rank: 197 Down10 in France France Down
Innovation award
Innovation award
Nominee: 6x

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

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,501
This week:0
All time:2,608
This week:206Up
User Ratings User Comments (1)
 All time
Utility:85%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:-
Tests:60%StarStarStarStar
Videos:-
Overall:57%StarStarStar
Rank:1602