Re: Exception misinformation

From: Date: Sun, 11 Jul 2004 19:37:36 +0000
Subject: Re: Exception misinformation
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31854@lists.php.net to get a copy of this message
Hi, I am wondering if we have come up with some magic to handle the following issue with exceptions. Currently using PEAR_Error I can build up a stack of expected errors which should not cause the standard error handling callback to be called and thereby let local error handling take over. The only way using Exceptions I can quickly come up with is wrapping every method call with a try catch block including _every_ method call. Considering that this catch block could get fairly lengthy this could bloat code considerably. Again this shows a huge problem in how exceptions force handling of every error and at the same time not being able to be easily selectively suppresed from showing this behaviour. Anyways not sure that I thought this thing 100% through considering its a sunday evening and I am currently watching a movie on TV. If I am totaly off .. sorry for the noise. regards, Lukas

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