Re: Using PEAR_ErrorStack
| From: | Scott Mattocks | Date: | Wed, 15 Mar 2006 17:36:38 +0000 |
| Subject: | Re: Using PEAR_ErrorStack | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41801@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
Then I still have to dismantle the error to get the data on the stack. I want to avoid that if possible. I would think that PEAR_ErrorStack should be able to handle PEAR_Errors. Also, I am trying to get rid of the pushError method or at least make it just a wrapper for PEAR_ErrorStack::push(). -- Scott Mattocks http://www.crisscott.comHow can I get that error on to the stack without making calls to getCode, getMessage, etc...?What about: PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array(&$this, 'pushError'));