CDbException is not caught

CDbException is not caught by the error handler

I am doing:


/* Set the error handler for each module */

Yii::app()->errorHandler->errorAction = $this->_thisModule . '/error/index';

And it captures the CHttpExceptions alright, But not the CDbExceptions. How can i make the error handler catch all exceptions? If possible including all php errors, notices etc…

Thanks.

Bump.

I am pretty sure there is a way for doing this with Yii.

Bump

Still working to get this right. CDbException is not caught by the error handler.