Zend Framework - 1.12 - 异常没有被错误控制器捕获

This question has been asked before and I have tried the solutions mentioned but nothing has worked for me.

In my controller whenever an exception is thrown rather then it being handled by the error controller I get an error message saying

Error : Uncaught Exception xxx

To solve this I added the following in my application.ini

resources.frontController.throwExceptions = 0

but it didn't worked. I had added this inside the development section of the application.ini and I have checked the application is running in the development environment so this should get triggered.

I also tried adding following to my bootstrap class but it failed as well.

protected function _initErrorDisplaySettings() {
    $front = Zend_Controller_Front::getInstance ();
    $front->throwExceptions ( false );
}

I can't figure out why the error controller is not being called. The error controller exists and the corresponding view script also exists.

I am using modules. Can this be the cause of this?

Can anyone please help me solve this?

Thanks in advance.