Re: Re: [PHP] MySQL class. Thoughts?
| From: | ceo at l-i-e dot com | Date: | Wed, 21 Jan 2009 21:05:22 +0000 |
| Subject: | Re: Re: [PHP] MySQL class. Thoughts? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-286954@lists.php.net to get a copy of this message | ||
> there is an art to using them, they compliment 'traditional' error
> handling, and I agree they can hinder if used badly.
I don't think I've ever seen Exceptions used well...
Invariably, I end up having to write a wrapper function around every function implemented and catch
all the Exceptions.
Otherwise, my code is littered with try/catch blocks for every little thing the other guy was too
lazy to figure out how to handle gracefully.
ymmv