PHP Classes


Recommend this page to a friend!
  Classes of Nitesh Apte   PHP Error and Exception Handling class   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Error and Exception Handling class
Log PHP exceptions, common and fatal errors
Author: By
Last change:
Date: 6 years ago
Size: 638 bytes


Class file image Download

Advanced Error & Exception Handler and Logger

Handles and logs the errors and exception occurs in the project.

This is an advanced version of In this one you can add custom codes for exception. Make sure when you create/use code for exception it follow some rules. For instance, use code 888 for exceptions occured during database connectivity. So, in case after a month you want to check how many times there was database connectivity failures, you just need to search for 888 in your log file.

Also, it does not matter if exception class is custom or built-in.