[PEPr] -1 for RFC::Error Handling Guidelines for PHP5 packages

From: Date: Mon, 23 Aug 2004 11:14:05 +0000
Subject: [PEPr] -1 for RFC::Error Handling Guidelines for PHP5 packages
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32842@lists.php.net to get a copy of this message
Pierre-Alain Joye (http://pear.php.net/user/pajoye) has voted -1 on the proposal for RFC::Error Handling Guidelines for PHP5 packages. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=132 Vote information: http://pear.php.net/pepr/pepr-vote-show.php?id=132&handle=pajoye Comment: Nice exceptions overview :) But: "It was written to cope with Exceptions, introduced in Zend Engine 2 as the error handling mechanism." -1 from here, I do not like the idea to force the usage of exceptions as general errors hanlders. I failed to see why each single package should declare (or extends, or...) their exception classes. Why? I can imagine some without any kind of exceptions... "An error is defined as an unexpected, invalid program state from which it is impossible to recover." This is the definition of an exception. Where exceptions should be used (trying at least to die cleanly ;) ). But in no way the definition of an error. That's exactly where errors and exceptions differ. Sorry, but -1 from here. --Pierre -- Sent by PEPr, the automatic proposal system at http://pear.php.net

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