Re: Re: common error handling problem -

From: Date: Sat, 02 Aug 2003 02:00:01 +0000
Subject: Re: Re: common error handling problem -
References: 1 2 3 4 5 6 7  Groups: php.pear.dev php.pear.qa 
Request: Send a blank email to pear-dev+get-19140@lists.php.net to get a copy of this message
However, if an error is converted to another error along the way (DB throws an error, which is caught by DataObjects and repackaged to describe what DataObjects was trying to do), then there is no way currently to retrieve the old DB_Error from the DB_DataObject_Error. I thought there was some backtrace stuff in pear error now, that should work for determining the source class of the error..
In theory, you should be able to stack errors.. - so that one error causes another one to be thrown from the wrapper.. - and then show a backtrace of them.. No idea if that is designed into PEAR error at present.. Regards Alan -- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#19140) next »