framework/cli/views/webapp/protected/controllers/SiteController.php
public function actionError()
	{
		if($error=Yii::app()->errorHandler->error)
		{
			if(Yii::app()->request->isAjaxRequest)
				echo $error['message'];
			else
				$this->render('error', $error);
		}
	}
public function actionError()
	{
		if($error=Yii::app()->errorHandler->error)
		{
			if(Yii::app()->request->isAjaxRequest)
				echo $error['message'];
			else
				$this->render('error', $error);
		}
	}
public function actionError ( ) { if ( $ error = Yii :: app ( ) -> errorHandler -> error ) { if ( Yii :: app ( ) -> request -> isAjaxRequest ) echo $ error [ 'message' ] ; else $ this -> render ( 'error' , $ error ) ; } }
This is the action to handle external exceptions.
This is the action to handle external exceptions .