Example #1
0
 /**
  * If an exception is detected this is used to dispatch
  * to an internal controller and view
  * @param Exception $e the exception object.
  *
  * @return void
  */
 public function dispatchException($e)
 {
     $req_error = get_class($e) == 'Empathy\\MVC\\RequestException' ? true : false;
     $this->controller = new Controller($this);
     $this->plugin_manager->preEvent();
     $this->controller->viewException($this->debug_mode, $e, $req_error);
 }