Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Exception Classes Advice on Subclasses

by perrin (Chancellor)
on Dec 21, 2005 at 17:38 UTC ( #518371=note: print w/ replies, xml ) Need Help??

in reply to Exception Classes Advice on Subclasses

Others have pointed out why you should have different classes instead of parameters. I'd add that there is no point in having exception classes if you don't intend to catch them and continue. If all you want is a nice error message, then just croak() and be done with it. Exception::Class is useful when you have conditions that could be caught and recovered.

Comment on Re: Exception Classes Advice on Subclasses

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://518371]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-12-01 23:23 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (29 votes), past polls