Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 contemplating the Monastery: (2)
As of 2014-09-17 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (55 votes), past polls