Re: errorStack

From: Date: Fri, 14 May 2004 15:09:10 +0000
Subject: Re: errorStack
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29247@lists.php.net to get a copy of this message
Lukas Smith wrote:
yeah .. seems to me like in the same places where you may want to use an exception you would return the error object and everywhere else simply push to a stack ...
I also think that many cases will want to use the compatibility option in order to create an actual PEAR_Error, with a constructor flag that will turn it off when code is ready to use the new functionality. I'd also expect that php5-only objects will throw a real exception, since this is the object returned from push() in php5 Greg

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