Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Alexey Kotlyarov
RE: Java exceptions and getCause() [ reply ]  
2010-07-23 08:52
Thanks, works as advertised in 1.2.6!

By: arton Tajima
RE: Java exceptions and getCause() [ reply ]  
2010-07-22 14:22
Hi Alexey

It's good point.
I've just changed the exception behaviour as Java's are.
Please try Rjb-1.2.6, you can call e.case (or e.getCause) since that version.

Regards

By: Alexey Kotlyarov
Java exceptions and getCause() [ reply ]  
2010-07-22 05:50
I get "Undefined method getCause on #<TheJavaExceptionICaught:address>" when trying to see it:

begin
java_object.call_method_raising_exception
rescue => e
puts e.getCause
end

Do Java exceptions thrown get converted to Ruby ones? How do I get the exception cause here?