public static function render($e)
    {
        // Validate the type, resolve to a 404 if not valid
        if (!static::isValidThrowable($e)) {
            $e = new FrontendPageNotFoundException();
        }

        if ($e->getTemplate() === false) {
            Page::renderStatusCode($e->getHttpStatusCode());

            if (isset($e->getAdditional()->header)) {
                header($e->getAdditional()->header);
            }

            echo '<h1>Symphony Fatal Error</h1><p>'.$e->getMessage().'</p>';
            exit;
        }

        include $e->getTemplate();
    }
public static function render($e)
    {
        // Validate the type, resolve to a 404 if not valid
        if (!static::isValidThrowable($e)) {
            $e = new FrontendPageNotFoundException();
        }

        if ($e->getTemplate() === false) {
            Page::renderStatusCode($e->getHttpStatusCode());

            if (isset($e->getAdditional()->header)) {
                header($e->getAdditional()->header);
            }

            echo '<h1>Symphony Fatal Error</h1><p>'.$e->getMessage().'</p>';
            exit;
        }

        include $e->getTemplate();
    }
public static function render ( $ e ) { // Validate the type, resolve to a 404 if not valid if ( ! static :: isValidThrowable ( $ e ) ) { $ e = new FrontendPageNotFoundException ( ) ; } if ( $ e -> getTemplate ( ) === false ) { Page :: renderStatusCode ( $ e -> getHttpStatusCode ( ) ) ; if ( isset ( $ e -> getAdditional ( ) -> header ) ) { header ( $ e -> getAdditional ( ) -> header ) ; } echo '<h1>Symphony Fatal Error</h1><p>' . $ e -> getMessage ( ) . '</p>' ; exit ; } include $ e -> getTemplate ( ) ; }
The render function will take a `SymphonyErrorPage` exception and
output a HTML page. This function first checks to see if their is a custom
template for this exception otherwise it reverts to using the default
`usererror.generic.php`

@param Throwable $e
The Throwable object
@return string
An HTML string
The render function will take a SymphonyErrorPage exception and output a HTML page . This function first checks to see if their is a custom template for this exception otherwise it reverts to using the default usererror . generic . php