Re: Mail_IMAP 2.0.0 alpha 1
| From: | Daniel Convissor | Date: | Fri, 09 Jul 2004 04:01:41 +0000 |
| Subject: | Re: Mail_IMAP 2.0.0 alpha 1 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31772@lists.php.net to get a copy of this message | ||
Hi Hans:
On Tue, Jul 06, 2004 at 01:32:06PM -0400, Hans_L wrote:
> But as far as I can see if you do not check return types on a method
> that may return PEAR_Error you are 1) just as surely going to get a
> FATAL error and 2) you are gonna have no idea what the error is about
> until you go in and add handling code. With exceptions you have a head
> start because you know what the problem is when it bubbles up.
You can get the same results by using PEAR_Error and setting it to
callback mode. This can also be done using PEAR_ErrorStack, which I hear
will give you very detailed information about the error.
Enjoy,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409