Why Is It Impossible To Catch A Cdbexception ?!

I’m trying this




try {

            $this->db = new CDbConnection("pippo","pluto","paperino");    

        } catch (CDbException $e) {

            $this->lastError = self::NQM_DB_ERROR;

        }



But this simply not works !

An exception will be thrown and I cannot log / recover / wait into my script.

How to ?!

From /doc/api/CDbConnection:

It does not throw exceptions until you connect.