haeckel/exception

library that provides utilities and extensions for exceptions.

1.0.0 2025-09-27 20:56 UTC

This package is auto-updated.

Last update: 2025-09-27 21:40:11 UTC


README

Haeckel/php-exception is a php library that provides utilities and extensions for exceptions.

Features

  • Utilities to make working with exceptions easier:

    • MessageProvider: Provide common exception message templates to have consistent exception messages.
  • Extensions:

    • LogCtxAware: Exceptions that contain an array, to capture the context when the exception is thrown. This context can then be passed to a psr/log compatible logger.

Installation

Install the package vai composer by running:

composer require haeckel/exception

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Source Code

Support

Let us know if you have issues.

Issue Tracker

License

LGPL-3.0-or-later