Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[LanX]: I told you the story about the “new" currency trading system of Dresdner Bank
[LanX]: ?
[Corion]: No, or I don't remember the story ;)
LanX my favourite don't tell me the proof of concept is good enough for production anecdote
[ambrus]: ah, it's one of thos
[Eily]: what, there's a difference between proof of concept and production?
[LanX]: 20 years ago traders were complaining about the latency of the trading system...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-03-29 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (349 votes). Check out past polls.