Re: Mail_IMAP 2.0.0 alpha 1

From: Date: Tue, 06 Jul 2004 13:26:32 +0000
Subject: Re: Mail_IMAP 2.0.0 alpha 1
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31647@lists.php.net to get a copy of this message
Pierre-Alain Joye wrote:
On Tue, 6 Jul 2004 15:00:56 +0200 (CEST) tobias@schlitt.info (Tobias Schlitt) wrote:
As said before, I agree with your argumentation, but I still insist on forcing people to a common error handling method (let it be PEAR exceptions), to keep our usability level.
Am I the only one thinking that Exceptions are a specific """Error""" (let add as many quotes as you like) but an Error is not an Exception??
Indeed, I think perhaps you are :) What do you mean that an Error is not an Exception? You see them as different levels of severity? An Exception is an unexpected error that should be handled by your application.
Thinking about having Exceptions raising everywhere sounds like my next biggest nightmare in PEAR ;-)
Certainly not as big a nightmare as returning PEAR_Error objects from methods, forcing the checking of every method return and often resulting in uncaught, lost errors in the system. I would rather have "Exceptions raising everywhere" than have an uncaught error that has hard to diagnose repercussions throughout my app. But realistically, you should never be *expecting* your application to raise Exceptions. Hans

« previous php.pear.dev (#31647) next »