Releases: php-enspired/exceptable
Releases · php-enspired/exceptable
Version 5
v4.0
support for PHP 7.4, 8.0+
v3.2
Fixes case where non-string values were being sent to message formatting functions.
v3.1
Functionality
clear handler hierarchy based on the exception's class and code
Handler::handleException
now tries registered exception handlers in the following order:
- try handlers for concrete exception class + code
- try handlers for concrete exception class catch-all
- try handlers for parent exception class catch-all; iterate up inheritance chain
- try handlers for
Throwable
Notes:
- When a handler returns true, no further handlers will be tried.
- Within each step, handlers will be tried in the order they were added.
- A "catch-all" handler is one set to handle code
0
.
Previously, invocation order for exception handlers was considered undefined, so this should have no/minimal backwards compatibility impact.
Tests
- added a few more tests
Documentation Fixes
- corrected readme example
Version 3
- Support* for ICU locales, message formats, and resource bundles (optional; requires the intl extension)
- Ready-to-extend (or just use)
Exceptable
classes based on the built-in SPL Exception classes - The generic
Exceptable
Exception base class has been removed - Introduces a "debug mode" for Handlers
- Handlers are now Logger (e.g., Monolog)-aware
2.0
- Abstracts base implementation as a Trait, so it can be used as a "mixin" for any Throwable subclass.
- Improvements to the Handler class.
- Removes support for php 7.0.
1.2.2
Handler::throw() now respects @ error control operator
1.2.1
bug fixes for Handler
1.2.0
bugfixes: constructor was doing things in a subtly wrong order
1.1.1
corrected license identifier in composer.json.