DB: do I need to check if (DB::isError($res)) if I setErrorHandling() to callback function?
| From: | l Burnerheimerton | Date: | Mon, 22 Aug 2005 15:02:32 +0000 |
| Subject: | DB: do I need to check if (DB::isError($res)) if I setErrorHandling() to callback function? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20518@lists.php.net to get a copy of this message | ||
I am trying to streamline and standardize my code. I
recently added:
$db->setErrorHandling(PEAR_ERROR_CALLBACK,
'db_Error_Handler');
Can I now go back and remove the following from all
pages:
if (DB::isError($res)) {
die($res->getMessage());
}
or do I still need it? Either way, why?
Many thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com