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; }