/**
  * Automatically called by the controller instance whenever
  * an exception was thrown and not trapped in a catch clause.
  * Since this controller supports conjoonContext, the format
  * of the values assigned to the view-variables may differ depending
  * on the format used (e.g. json encoded sting for context 'json').
  */
 public function errorAction()
 {
     /**
      * @see Conjoon_Controller_DispatchHelper
      */
     require_once 'Conjoon/Controller/DispatchHelper.php';
     $exception = $this->_getParam('error_handler')->exception;
     $result = Conjoon_Controller_DispatchHelper::transformExceptions(array($exception));
     $this->getResponse()->clearBody();
     $userId = $this->_helper->registryAccess()->getUserId();
     /**
      * @see Conjoon_Modules_Default_Registry_Facade
      */
     require_once 'Conjoon/Modules/Default/Registry/Facade.php';
     $this->view->title = Conjoon_Modules_Default_Registry_Facade::getInstance()->getValueForKeyAndUserId('/base/conjoon/name', $userId);
     foreach ($result as $key => $value) {
         $this->view->{$key} = $value;
     }
 }