PHP Classes

xError: Generic error reporting and handling class

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 56%Total: 1,948 All time: 2,018 This week: 571Up
Version License Categories
xerror 1.0GNU General Publi...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

  Files folder image Files (10)  
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

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,948
This week:0
All time:2,018
This week:571Up
 User Ratings  
 
 All time
Utility:68%StarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:62%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1756