All pastes #902119 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-13 04:52 UTC
rendered paste body
 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');
  }