Re: MDB2 global error handling

From: Date: Tue, 18 Dec 2007 12:52:29 +0000
Subject: Re: MDB2 global error handling
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28344@lists.php.net to get a copy of this message
Justin Patrin wrote: > > This should work just fine. The problem is that if you can't really > handle the errors in this callback. For instance, if you wanted to > show a special message about where the failure happened or do a > rollback. This should work fine if you just want to die() with the > error, though. > Actually, there are other ways I could handle the MDB2 error (such as calling MDB2::isError() on the error object and determining what to do based off the error code). At any rate, with the driver and code I'm using die()ing would be fine - I just don't want to have to write a wrapper around MDB2 in order to have errors handled in a central location. -Doug -- View this message in context: http://www.nabble.com/MDB2-global-error-handling-tp14374020p14396379.html Sent from the Pear - General mailing list archive at Nabble.com.

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