Re: PHP5: PEAR Error Handling

From: Date: Thu, 26 Feb 2004 11:30:43 +0000
Subject: Re: PHP5: PEAR Error Handling
References: 1 2 3  Groups: php.pear.core 
Request: Send a blank email to pear-core+get-125@lists.php.net to get a copy of this message
On Wed, 25 Feb 2004 13:08:11 -0500 Greg Beaver <greg@chiaraquartet.net> wrote: > I'm surprised to hear your surpise over this :). I've been describing Do not be surprised, I do not change my pov :) > problems for a while now. If PEAR_Error is the best solution, then > why does both PEAR_Dependency and the PEAR_Installer class use a > hacked error stack? Remember the passing in of an array for error > messages? This is not a good solution, as we've discovered, because > for one thing it doesn't allow error codes, something PEAR_Error does > allow. Nothing can be the best solution. What I was trying to say is to clearly separate exceptions and errrors. Exception are not a way to manage errors but only a way to manage "problems" that can turn into a fatal exit of a given script. See the 3 main rules of exceptions (not you greg, but maybe other :) ). The 2nd point is I do not like the idea to change too much things for the 1st php 5 release. As we already discussed that before, the php5 stuffs will take place in 5.1, at least. pierrre

« previous php.pear.core (#125) next »