Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ruby in Practice - Exception Handling

 
Mourouganandame Arunachalam
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Authors,

How the exception handling in Ruby designed when compare to Java?

Mourougan
 
Assaf Arkin
Author
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very similar. The main difference is that you use raise/rescue/ensure instead of throw/catch/finally. (The catch keyword is reserved for something else)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic