Re: Exceptions was Basic DB/MDB Question
| From: | Dan Rossi | Date: | Tue, 29 Mar 2005 02:27:24 +0000 |
| Subject: | Re: Exceptions was Basic DB/MDB Question | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18384@lists.php.net to get a copy of this message | ||
Hi Greg, err I attempted to implement this into my project, I cant see a download available on the pear site, whats going on here ?
On 23/03/2005, at 11:41 AM, Greg Beaver wrote:
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 -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php