wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby in Practice - Exception Handling" Watch "Ruby in Practice - Exception Handling" New topic

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?


Open Source leads to Open Mind
Assaf Arkin

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
Similar Threads
Java.comm API: WaitCommEvent: Error 5
please tell me.......................
XTreme Programming Revelation: Could I make it all MUCH simpler?
java [question -- exception handling]
is there EJB3 Exception handling framework?