I would expect the JRuby stack trace to contain some information about the root cause but instead it only shows
NativeException: java.lang.RuntimeException: Exception on level 8
(root) at nested_exceptions.rb:5
without a mention of the root cause.
So, how should I get that information saved, say, when logging? Should I manually inspect NativeException and see what it contains?
I don't think Ruby can throw nested exceptions; I believe JRuby mimics this behavior.