Custom error controller for a module, different than defaultController

I browsed the forum to search for a custom error controller for my module. I found a couple of solutions that refers how to setup a custom controller.

My situation is different, I do not want to use defaultController, but for some reason I have setup a custom controller and does not seams to be get triggered.

I placed this in init.


        'errorHandler' => array(

            'errorAction' => "admin/adminDefault/error"),

        'user' => array(

            'class' => 'RWebUser',

            'loginUrl' => Yii::app()->createUrl("{$this->id}/adminDefault/login"),



when I raise and error, the framework still uses the defaultcontroller from the front-end.