示例#1
0
 public function _displayException($exception)
 {
     if ($exception instanceof MissingControllerException) {
         // Here handle MissingControllerException by yourself
     } else {
         parent::_displayException($exception);
     }
 }
示例#2
0
 /**
  * Displays an exception response body.
  *
  * @param \Exception $exception The exception to display
  *
  * @return void
  */
 protected function _displayException($exception)
 {
     if (Configure::read('debug')) {
         $whoops = $this->getWhoopsInstance();
         $whoops->pushHandler(new PrettyPageHandler());
         $whoops->handleException($exception);
     } else {
         parent::_displayException($exception);
     }
 }
示例#3
0
 public function _displayException($exception)
 {
     parent::_displayException($exception);
 }