public function _displayException($exception) { if ($exception instanceof MissingControllerException) { // Here handle MissingControllerException by yourself } else { parent::_displayException($exception); } }
/** * 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); } }
public function _displayException($exception) { parent::_displayException($exception); }