enmanuelar/exception-catcher

ExceptionCatcher provides functions for handling the catching of exceptions and debugging in a simpler way

v0.1.0 2020-10-13 02:17 UTC

This package is auto-updated.

Last update: 2025-06-13 14:15:23 UTC


README

Catch exceptions and debug faster. This package can be used to make debugging easier and pretty print the exceptions to help you find the solution to the problem fast.

Installation

Installation is done via composer

composer require enmanuelar/exception-catcher

Basic Example

You just need to instantiate a new ExceptionCatcher in a catch block and call any function you need.

try {
	...
} catch (Exception $exception) {
	$catcher = new ExceptionCatcher();
	$catcher->printExceptionDetails($exception);
}