Interfaces for error handling — defines how errors are captured and structured, not how they're displayed.
composer require marko/errorsNote: You typically install an implementation package (like marko/errors-simple) which requires this automatically.
use Marko\Errors\ErrorReport;
use Marko\Errors\Severity;
$report = ErrorReport::fromThrowable($exception, Severity::Error);Full usage, API reference, and examples: marko/errors