Skip to content

[ji] set Ruby/Java cause on RaiseException#6660

Merged
headius merged 1 commit intojruby:masterfrom
kares:raise-exception-cause
May 17, 2021
Merged

[ji] set Ruby/Java cause on RaiseException#6660
headius merged 1 commit intojruby:masterfrom
kares:raise-exception-cause

Conversation

@kares
Copy link
Member

@kares kares commented Apr 22, 2021

in Ruby we now get proper cause exception being hooked up.

if this (Ruby land) cause is a Ruby Exception or a Java Throwable we should also expose it on RaiseException#getCause as the proper cause ... thus a re.printStackTrace will properly print it's Ruby/Java cause throwable.

also helps logging using Java tools such as log4j.

@headius
Copy link
Member

headius commented May 17, 2021

Nice!

@headius headius merged commit e754ad3 into jruby:master May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants