Skip to content

Releases: php-enspired/exceptable

Version 5

20 Mar 01:51
96b0c42
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0...v5.0

v4.0

01 Jan 16:37
5579f3b
Compare
Choose a tag to compare

support for PHP 7.4, 8.0+

v3.2

13 Sep 02:20
e3a7333
Compare
Choose a tag to compare

Fixes case where non-string values were being sent to message formatting functions.

v3.1

11 Nov 01:41
9fd1652
Compare
Choose a tag to compare

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

11 Oct 15:04
e118d9f
Compare
Choose a tag to compare
  • 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

02 Dec 23:31
f669416
Compare
Choose a tag to compare
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

25 Oct 01:24
bbed81c
Compare
Choose a tag to compare

Handler::throw() now respects @ error control operator

1.2.1

16 May 14:27
90a9ab0
Compare
Choose a tag to compare

bug fixes for Handler

1.2.0

19 Apr 00:55
376be21
Compare
Choose a tag to compare

bugfixes: constructor was doing things in a subtly wrong order

1.1.1

18 Feb 23:59
c25f2f3
Compare
Choose a tag to compare

corrected license identifier in composer.json.