Re: DB: Possible to wrap DB Errors into PEAR_ErrorStack?
| From: | Ian Eure | Date: | Sun, 10 Oct 2004 09:04:54 +0000 |
| Subject: | Re: DB: Possible to wrap DB Errors into PEAR_ErrorStack? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14830@lists.php.net to get a copy of this message | ||
Erik franzén wrote:
> Until now I understand that the simpliest way is set an error callback
> and inside that call you alos create the ErrorStack_Error?
>
You can just call PEAR_ErrorStack::staticPush() in your class methods, and
ErrorStack will create a new stack for you.