PHPackages                             jakubpas/error-exception - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. jakubpas/error-exception

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jakubpas/error-exception
========================

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions.

1.0.3(5y ago)323LGPL-3.0-or-laterPHPPHP &gt;=5.4.0CI failing

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jakubpas/error-exception)[ Packagist](https://packagist.org/packages/jakubpas/error-exception)[ Docs](http://jakubpas.net)[ RSS](/packages/jakubpas-error-exception/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Synopsis
--------

[](#synopsis)

PHP 7 will allow to use of exceptions in the engine and will replace the existing fatal or recoverable fatal errors with exceptions. Meanwhile in older PHP versions the E\_USER\_WARNING, E\_USER\_NOTICE, and any other non-terminating error codes, are useless and act like E\_USER\_ERROR that will terminate runtime unless ERROR\_HANDLER is not combined with ErrorException to catch the error. This library introduces sets of exceptions which handle most of the errors like: CompileError, CompileWarning, CoreError, CoreWarning, Deprecated, Handler.php, Notice, Parse, RecoverableError, Strict, UserDeprecated, UserError, UserNotice, UserWarning, Warning etc.

Code Example
------------

[](#code-example)

To turn on ErrorExceptions handling use:

```
