Re: Some more PHP5-related ruminations: Exceptions

From: Date: Tue, 08 Apr 2003 01:19:43 +0000
Subject: Re: Some more PHP5-related ruminations: Exceptions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15007@lists.php.net to get a copy of this message
Hi George, --- George Schlossnagle <george@omniti.com> wrote: > > On Saturday, April 5, 2003, at 07:10 AM, Jesus M. Castagnetto wrote: > > > The execptions in PHP5 look nice, and should make some of the error > > handling > > simpler and more consistent. > > > > One thing that the Exception class does not have is the ability to > > chain them. > > Tried subclassing it but did not work too well (the filename and line > > were > > always wrong), so maybe something like the following could be used in > > PEAR: > > > There is a base 'exception' class in PHP5, perhaps inhereting from that > would be good. (I am catching up w/ my email just today). As mentioned above, I tried inheriting from that, but the filename and linenumbers generated were always incorrect, and referred to the line in the subclass that called the parent's constructor. And unless I specifically pass those vars in the constructor of the derived class, I did not see a simple way to get around that, thus the standalone class. ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com

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