aspose file tools*
The moose likes Ruby and the fly likes Ruby in Practice - Exception Handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby in Practice - Exception Handling" Watch "Ruby in Practice - Exception Handling" New topic
Author

Ruby in Practice - Exception Handling

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
Hi Authors,

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

Mourougan


Mourougan
Open Source leads to Open Mind
Assaf Arkin
Author
Greenhorn

Joined: Feb 09, 2009
Posts: 16
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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ruby in Practice - Exception Handling