some questions about error handling
| From: | Luca Giandoso | Date: | Tue, 04 Sep 2007 08:10:56 +0000 |
| Subject: | some questions about error handling | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27871@lists.php.net to get a copy of this message | ||
I have to manage MDB2 errors in different ways, sometimes I have to
log that errors and rollback and sometimes I have only to raise an
error to make the caller function know what happened.
How can I get the reference to the MDB2 object from the error handling
function set with setErrorHandling()? I need a global MDB2 variable,
and in this case is it safe to switch error handler?
I have to extend MDB2 class with an error handler to have the
reference of that object?
Luca Giandoso