Re: Short question: PEAR_ERROR_EXCEPTION
| From: | Christoph Schiessl | Date: | Sat, 21 Jul 2007 18:44:16 +0000 |
| Subject: | Re: Short question: PEAR_ERROR_EXCEPTION | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47656@lists.php.net to get a copy of this message | ||
Hm...
All the PEAR packages (for example MDB2) are still using PEAR::raiseError(). Because of that a get PHP warning triggered by PEAR when an error occurs.
I suppose there's no work around for that?
On Jul 21, 2007, at 8:28 PM, Martin Jansen wrote:
On Sat Jul 21, 2007 at 04:3131PM +0200, Christoph Schiessl wrote:I'm trying to use PEAR with exceptions for error handling. However, the PEAR_ERROR_EXCEPTION constant is deprecated. So, what is right way of doing it?Throw PEAR_Exception directly. It is defined in PEAR/Exception.php. - Martin