malyshev/yii-debug-toolbar — pull request #38 by igorsantos07 (2011-12-13 17:00:32+00:00)
Title: Problem when running the toolbar throws a string-code Exception

In my dev machine my database was causing a PDOException - that has a string code, instead of integer code as CException has.
After that, digging in the code, I've found that YiiDebugToolbar::run() was catching all exceptions and re-throwing them as CExceptions... and that caused a fatal error, since the code type mismatches.
As catching an exception just for throwing it again looks, for me, useless, I removed that part of code and let the exception happen naturally.