Re: Re: PEAR_Warning proof of concept

From: Date: Sun, 11 Jul 2004 14:09:03 +0000
Subject: Re: Re: PEAR_Warning proof of concept
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31847@lists.php.net to get a copy of this message
Alan Knowles wrote:
I wonder if having the ability to elevate warnings to exceptions may be overdesigning the class.. - Trouble is that designing something as core as the error/warning handler, you are between a rock and and hard place (or whatever the phrase is). Your dammed if you add it in and dont need it, and your dammed if you dont, and you have to break BC later.. :)
Can you please provide an example of a situation where a warning would be elevated to an exception? I can easily imagine the other way around: an Exception being downgraded into a Warning, upon incomplete error recovery. For a Warning to be upgraded to an Exception, the lower library must have been throwing warnings in place of exceptions, no? Cheers, Sérgio Carvalho

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.dev (#31847) next »