src/TemplateRenderer/ErrorRenderer.php
public function render($__template, array $__variables = [])
    {
        extract($__variables);

        try {
            ob_start();
            include $this->getResolver()->resolve($__template);
            $__return = ob_get_clean();
        } catch (Error $__error) {
            ob_end_clean();
            throw $__error;
        } catch (Exception $__exception) {
            ob_end_clean();
            throw $__exception;
        }

        return $__return;
    }
public function render($__template, array $__variables = [])
    {
        extract($__variables);

        try {
            ob_start();
            include $this->getResolver()->resolve($__template);
            $__return = ob_get_clean();
        } catch (Error $__error) {
            ob_end_clean();
            throw $__error;
        } catch (Exception $__exception) {
            ob_end_clean();
            throw $__exception;
        }

        return $__return;
    }
public function render ( $ __template , array $ __variables = [ ] ) { extract ( $ __variables ) ; try { ob_start ( ) ; include $ this -> getResolver ( ) -> resolve ( $ __template ) ; $ __return = ob_get_clean ( ) ; } catch ( Error $ __error ) { ob_end_clean ( ) ; throw $ __error ; } catch ( Exception $ __exception ) { ob_end_clean ( ) ; throw $ __exception ; } return $ __return ; }
Renders template.

@param string $__template  The name of error template
@param array  $__variables Optional; the variables to rendering

@throws \Exception Translates any exception thrown during the rendering
@throws \Error     Translates any error thrown during the rendering

@return string The string representation of error
Renders template .