Login   Register  
PHP Classes
elePHPant
Icontem

xError: Generic error reporting and handling class

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 (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-08-15 (11 years ago) RSS 2.0 feedStarStarStar 56%Total: 1,922 All time: 1,923 This week: 1,550Up
Version License Categories  
xerror 1.0GNU General Public Lice...Debug, Logging
Description Author  

xError is a generic error reporting and handling class. It may be used for debugging and/or monitoring purposes.

The basic concept is to define as many errors as needed for the application. These errors may be declared as 'fatal' or 'non-fatal' errors.

Whenever an error is encountered during the execution of the program, xError checks whether it is classified as 'fatal' or 'non-fatal'.

Fatal errors cause the immediate abortion of the program's execution. Instead of the output normally generated, an error message is displayed, describing the error that just occurred, accompanied by suggestions on how to avoid the error (if that is possible). Additionally, the error could be logged in a text file.

Non-fatal errors do not cause the running program to be aborted. The error message is merely added to the so-called error stack. The developer is free to decide where and how he wants to react to these errors. For the sake of completeness, it , has been implemented a means of displaying the non-fatal errors the same way fatal errors are displayed.

Picture of Alexander Serbe
Name: Alexander Serbe <contact>
Classes: 3 packages by
Country: Germany Germany
Age: 40
All time rank: 69348 in Germany Germany
Week rank: 1790 Down96 in Germany Germany Down

  Files folder image Files  
File Role Description
Plain text file class.xerror.php Class Contains the class
Accessible without login Plain text file demo.php Example Short demo
Accessible without login Plain text file errors01.txt Data Error definitions (demo)
Accessible without login HTML file fatal.html Data Template to display fatal errors
Accessible without login Plain text file gpl.txt Lic. GNU General Public License
Accessible without login Plain text file gpl_de.txt Lic. GNU General Public License (German)
Accessible without login Plain text file gpl_fr.txt Lic. GNU General Public License (French)
Accessible without login HTML file non-fatal.html Data Template to display non-fatal errors
Accessible without login HTML file readme.html Doc. Readme
Accessible without login HTML file source.html Doc. The source code in HTML format

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,922All time:1,923
 This week:0This week:1,550Up
 User Ratings  
 
 All time
Utility:68%StarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:62%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1108