[dev] 'new PEAR_Error' deprecated

Chuck Hagenbuch chuck@horde.org
Fri Oct 25 16:30:59 2002


Quoting Jon Parise <jon@horde.org>:

> I just read [1], which indicates that 'new PEAR_Error' has been
> deprecated in failure of PEAR::raiseError().  Does anyone understand
> the reasons for this?  Are there plans to alter our code that calls
> 'new PEAR_Error'?

It's because you can set different error handling modes, like logging, exit
on error, etc., so that the generation of an error is handled differently.
I've been changing over to it as I come across it and remember.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"People ask me all the time what it will be like living without otters."
 - Google, thanks to Harpers