src/Viserio/Component/Exception/ErrorHandler.php
public function handleException(Throwable $exception): void
    {
        $exception = $this->prepareException($exception);

        try {
            $this->report($exception);
        } catch (Throwable $e) {
            // If handler can't report exception just throw it
        }

        throw $this->getTransformed($exception);
    }
public function handleException(Throwable $exception): void
    {
        $exception = $this->prepareException($exception);

        try {
            $this->report($exception);
        } catch (Throwable $e) {
            // If handler can't report exception just throw it
        }

        throw $this->getTransformed($exception);
    }
Handle an uncaught exception from the application.

Note: Fatal error exceptions must
be handled differently since they are not normal exceptions.

@param \Throwable $exception

@throws \Throwable

@return void

@internal

@see https://secure.php.net/manual/en/function.set-exception-handler.php