Link Details

Link 54183 thumbnail
User 201021 avatar

By ashiro
via pezra.barelyenough.org
Published: Nov 24 2007 / 16:43

When and where to use exceptions in Ruby programming.
  • 16
  • 0
  • 1216
  • 471

Comments

Add your comment
User 201685 avatar

lnguyen replied ago:

0 votes Vote down Vote up Reply

I've always preferred my own exceptions to returning null. I can include a lot of information in the exceptions that will help me debug.

User 52357 avatar

pulesen replied ago:

0 votes Vote down Vote up Reply

The subject is interesting, but I think the author is wrong. Exceptions are, and should only be, about exceptional conditions. And yes, it IS hard to determine, if something is an exceptional condition. Especially when you are writing libraries for others. Is all depends on the subject.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.