# [EMAIL PROTECTED] / 2007-01-07 13:17:23 -0500:
> On 1/5/07, Paul Scott <[EMAIL PROTECTED]> wrote:
> >On Fri, 2007-01-05 at 00:44 -0500, Craige Leeder wrote:
> >> The question is: How much is too much. Should I use Exceptions to
> >> handle all of my error reporting/triggering? How about catching them?
> >> I mean, if I'm using Exceptions for all of my error handling, I could
> >> easily end up wrapping my entire script in a try block(or at least
> >> having almost all my end-code within a number of them).
> >
> >Not sure if I am doing it correctly either, but, what I do is use
> >try/catch blocks to instantiate all of the objects that I need and then
> >let the script take over. I also use exceptions to handle SQL errors in
> >my db abstraction object(s). That way, only real messes are caught and
> >the script then displays a graceful exit page to the user instead of
> >screen vomit that may scare them off.
> 
> Does anybody else have any input? Not to be pushy, but I'm in the
> middle of programming a framework for a site.

I didn't see a real question in your original email. Otherwise, the
answer is 42.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to