private function renderException($exception, $full = false)
    {
        $app = \Reaction::$app;
        try {
            $rendered = View::renderPhpStateless($this->getViewFileForException($exception), [
                'exceptionName' => $this->getExceptionName($exception),
                'exception' => $exception,
                'app' => $app,
                'rootPathLength' => strlen($app->getAlias('@root'))
            ]);
        } catch (\Throwable $e) {
            $rendered = $this->getExceptionData($exception, $full, true);
        }
        return $rendered;
    }