Extending Exceptions

Ok, now I am working with new exceptions that I created for different reasons.

It is almost the same as CHttpException, but I dont need the status.


class AccesoException extends CException {


    public function __construct($message=null, $code=0) {

       

        parent::__construct($message, $code);

    }


}



I just want to disable the stacktrace for this exception, and not disable the yii debug or the entire site.

I dont want to some user of the site see the error stacktrace !

Any ideas? or anyone did something like this ?

You should disable Yii debug on production server.

True, the solution was just to disable the YII_DEBUG.