Pass parameters to exception

I would like to know if it is possible to pass parameters to an Exception object. For example:

throw new CHttpException(404, 'The message', array('param1' => 'value1', 'param2' => 'value2');

I would like to pass the language parameter, since the language always turns to English when the exception is thrown

Subclassing CHttpException and adding custom parameters can solve your problem?

Should I create a new class to pass parameters to exception object??? The Yii staff really should fix this problem.

Yes, i think that just subclass CHttpException to solve your problem.