示例#1
0
 protected function renderError()
 {
     $error = $this->getError();
     if (!in_array($error['code'], $this->handledErrorCode)) {
         $this->errorAction = null;
     }
     parent::renderError();
 }
示例#2
0
 /**
  * Renders the exception information. This method will display information from current {@link error} value.
  */
 protected function renderError()
 {
     // This could be an exception because handleException can call renderError.
     $exception = $this->getException();
     // If the exception exists, and it's an instance of HttpException or devMode isn't enabled
     // set the errorAction to our TemplatesController->renderError().
     if (!YII_DEBUG || $exception instanceof HttpException) {
         $this->errorAction = 'templates/renderError';
     }
     parent::renderError();
 }