Re: Exceptions was Basic DB/MDB Question
| From: | Greg Beaver | Date: | Wed, 23 Mar 2005 00:41:49 +0000 |
| Subject: | Re: Exceptions was Basic DB/MDB Question | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18253@lists.php.net to get a copy of this message | ||
Dan Rossi wrote:
Hmm from looking at the ErrorStack code docs, it requires the push method be used instead of RaiseError in the actual API :|au contraire. <?php require_once 'PEAR/ErrorStack.php'; function useErrorStack($err) {
PEAR_ErrorStack::staticPush('PEAR_Error', 'error',
array('olderror' => $err), $err->getMessage());
}
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'useErrorStack');
?>
Greg