Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-01-28 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (211 votes), past polls