src/Base/ErrorHandler.php
protected function handleFallbackExceptionMessage($exception, $previousException)
    {
        $msg = "An Error occurred while handling another error:\n";
        $msg .= (string)$exception;
        $msg .= "\nPrevious exception:\n";
        $msg .= (string)$previousException;
        if (Reaction::isDebug()) {
            if (Reaction::isConsoleApp()) {
                echo $msg . "\n";
            } else {
                echo '<pre>' . htmlspecialchars($msg, ENT_QUOTES, Reaction::$app->charset) . '</pre>';
            }
        } else {
            echo 'An internal server error occurred.';
        }
        $msg .= "\n\$_SERVER (GLOBAL) = " . VarDumper::export($_SERVER);
        $msg .= "\n\$_SERVER (LOCAL) = " . VarDumper::export($this->app->reqHelper->getServerParams());
        error_log($msg);
    }
protected function handleFallbackExceptionMessage($exception, $previousException)
    {
        $msg = "An Error occurred while handling another error:\n";
        $msg .= (string)$exception;
        $msg .= "\nPrevious exception:\n";
        $msg .= (string)$previousException;
        if (Reaction::isDebug()) {
            if (Reaction::isConsoleApp()) {
                echo $msg . "\n";
            } else {
                echo '<pre>' . htmlspecialchars($msg, ENT_QUOTES, Reaction::$app->charset) . '</pre>';
            }
        } else {
            echo 'An internal server error occurred.';
        }
        $msg .= "\n\$_SERVER (GLOBAL) = " . VarDumper::export($_SERVER);
        $msg .= "\n\$_SERVER (LOCAL) = " . VarDumper::export($this->app->reqHelper->getServerParams());
        error_log($msg);
    }
Handles exception thrown during exception processing in [[handleException()]].
@param \Exception|\Throwable $exception Exception that was thrown during main exception processing.
@param \Exception $previousException Main exception processed in [[handleException()]].