Re: MDB2 global error handling
| From: | Douglas E. Warner | Date: | Thu, 20 Dec 2007 19:51:25 +0000 |
| Subject: | Re: MDB2 global error handling | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28362@lists.php.net to get a copy of this message | ||
Christian Weiske wrote:
>
> Set the PEAR error handler to exception, and an exception is thrown
> whenever an error occurs. You can also specify a callback as error
> handler. See the PEAR.php class
>
I am setting the error handling to a callback right now; when I said before
that "die()ing would be fine", I meant from inside by error handler class.
Because of this, I think using PEAR_ERROR_CALLBACK and not
PEAR_ERROR_EXCEPTION is the correct way, but the MDB2 errors still don't get
handled by the callback - I have to check the response from every call to
make sure there wasn't an error.
-Doug
--
View this message in context: http://www.nabble.com/MDB2-global-error-handling-tp14374020p14443695.html
Sent from the Pear - General mailing list archive at Nabble.com.