private function _processException($exception) { if (!$exception instanceof Kwf_Exception_Abstract) { $exception = new Kwf_Exception_Other($exception); } $view = new Kwf_Exception_TestView(); Kwf_Debug::setView($view); $exception->render(true); return $view; }
public static function handleException($exception) { if ($exception instanceof Zend_Controller_Exception && $exception->getPrevious()) { $exception = $exception->getPrevious(); } if (!$exception instanceof Kwf_Exception_Abstract) { $exception = new Kwf_Exception_Other($exception); } $exception->render(); Kwf_Benchmark::shutDown(); Kwf_Benchmark::output(); }