src/ExceptionHandler.php
public static function handleException(\Throwable $e)
    {
        if (php_sapi_name() == 'cli') {
            $handler = new ConsoleHandler(self::$output);
        } else {
            $handler = new HtmlHandler(HtmlHandler::INVERTED);
        }

        // we are safe to handle global exceptions (system level) with maximum verbosity
        fwrite(self::$output, $handler->renderException($e, AbstractHandler::VERBOSITY_VERBOSE));
    }
public static function handleException(\Throwable $e)
    {
        if (php_sapi_name() == 'cli') {
            $handler = new ConsoleHandler(self::$output);
        } else {
            $handler = new HtmlHandler(HtmlHandler::INVERTED);
        }

        // we are safe to handle global exceptions (system level) with maximum verbosity
        fwrite(self::$output, $handler->renderException($e, AbstractHandler::VERBOSITY_VERBOSE));
    }
Handle exception and output error to the user.

@param \Throwable $e