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.
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.