Adding info to CHTTPException stack trace?

I have discovered significant need to output application-specific information into the backtrace for CHTTPExceptions, such as a user’s ID, and what page they were coming from. Is there something I can override in my Controller class or config file that will allow for the addition of arbitrary information, or do I need to start messing around with the CHTTPException/CException classes directly?

types of exceptions in yii ?