Re: DB_DataObject error handling

From: Date: Sun, 24 Sep 2006 21:38:52 +0000
Subject: Re: DB_DataObject error handling
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25230@lists.php.net to get a copy of this message
On 9/24/06, Noel da Costa <noel.dacosta@magharl.co.uk> wrote:
Hi there, I'm trying to supress this error, so that I can present something tidy and fancy to users in the case of database connection troubles:
        "DB_DataObject Error: Connect failed, turn on debugging to 5 to see
why" The manual mentions something about setting the 'PEAR_Error' callback... but I have no idea what this means.
Hmmm...looking at it now it seems like DB_DO is forcing PEAR_ERROR_DIE for this error...that shouldn't happen... -- Justin Patrin

« previous php.pear.general (#25230) next »