public function sendResponse()
    {
        $this->sendHeaders();

        if ($this->isException() && $this->renderExceptions())
        {
            $exceptions = '';
            foreach ($this->getException() as $e)
            {
                $exceptions .= $e->__toString() . "\n";
            }
            echo $exceptions;
            return;
        }

        $this->outputBody();
    }
public function sendResponse()
    {
        $this->sendHeaders();

        if ($this->isException() && $this->renderExceptions())
        {
            $exceptions = '';
            foreach ($this->getException() as $e)
            {
                $exceptions .= $e->__toString() . "\n";
            }
            echo $exceptions;
            return;
        }

        $this->outputBody();
    }
public function sendResponse ( ) { $ this -> sendHeaders ( ) ; if ( $ this -> isException ( ) && $ this -> renderExceptions ( ) ) { $ exceptions = '' ; foreach ( $ this -> getException ( ) as $ e ) { $ exceptions .= $ e -> __toString ( ) . "\n" ; } echo $ exceptions ; return ; } $ this -> outputBody ( ) ; }
Send the response, including all headers, rendering exceptions if so
requested.

@return void
Send the response including all headers rendering exceptions if so requested .