public function executeIndex() { try { $this->gonnaThrow(); } catch(Exception $e) { sfLogger::getInstance()->debug('Caught exception'); } sfLogger::getInstance()->debug('Post Exception'); try { $this->sendEmail('mail','index'); } catch(Exception $e) { sfLogger::getInstance()->debug('Caught exception '.get_class($e)); } sfLogger::getInstance()->debug('Post Exception'); $this->getResponse()->setContent('Hi'); return sfView::SUCCESS; } protected function gonnaThrow() { throw new sfException('Testing'); }