in reply to Re: How not to test exceptions
in thread How not to test exceptions
That's good info. I wish it was mentioned in its pod. For now I'm ok I think based on the fact that I don't actually use try/catch in the code (maybe once), but I just use throw within the code when things go wrong. It sounds like the problems would more effect people using the dist catching MY exceptions in their code.
Is there a decent replacement that can be shoehorned easily? Time to surf CPAN...
Updated. Not that Error isn't evil based on others experience, but AxKit uses Error. It can't be all that bad. I've looked ad Exception, but the lack of the 'catch with' sugar annoys me so...Exceptions are try/catch after all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How not to test exceptions
by diotalevi (Canon) on Jul 22, 2005 at 14:23 UTC | |
by jk2addict (Chaplain) on Jul 22, 2005 at 17:08 UTC |