MDB2 global error handling
| From: | Douglas E. Warner | Date: | Mon, 17 Dec 2007 19:58:22 +0000 |
| Subject: | MDB2 global error handling | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28339@lists.php.net to get a copy of this message | ||
Rather than having to call PEAR::isError() on each result from an MDB2 call,
is there a way to set a global error handler to catch all these errors?
I already have a PEAR error handler set using:
<?php
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array('MyError',
'Handle_Pear'));
?>
And I've tried setting this on my MDB2 object (created by a MDB2::factory()
call). Any other suggestions?
-Doug
--
View this message in context: http://www.nabble.com/MDB2-global-error-handling-tp14374020p14374020.html
Sent from the Pear - General mailing list archive at Nabble.com.