<headius[m]>
the exception should be propagated out as a RaiseException, which is not a a checked exception (i.e. javac won't yell at you if you don't handle it)
<headius[m]>
so if you catch org.jruby.exception.RaiseException you'll capture just about anything that might bubble out
<headius[m]>
oops that's org.jruby.exceptions (note the plural)
<headius[m]>
there are also Java subclasses for most of the core Ruby exceptions, like org.jruby.exceptions.NameError or StandardError or what have you
<headius[m]>
hmm
<headius[m]>
you could try to catch (Throwable) and see what it is
<headius[m]>
I'm confused why it's not a RaiseException but now I'm thinking perhaps the ScriptingContainer API wraps it with something else
<headius[m]>
(that API was created a long time ago, before we had a nice set of Java exceptions to raise)
<headius[m]>
I don't see anything that would be re-wrapping it
<valphilnagel>
hedius[m]: Yeah we did :) Probably timezone?... I will try to create the PR...let's see how it goes from there...
<headius[m]>
valphilnagel: I'm here now!
<valphilnagel>
Hi!
<valphilnagel>
I haven't done the fork and PR.. let me do that and you can see the changes
<headius[m]>
rabidmonk: this is the API we recommend for embedding
<headius[m]>
the alternatives are using javax.scripting, which is pretty limited as an API, or using JRuby's internals directly
<headius[m]>
rabidmonk: aha, so it does rewrap it
<headius[m]>
you should be able to catch that exception and then unwrap it to get the actual cause
<rabidmonk[m]>
thank you headius I'll play around with this more
_whitelogger has joined #jruby
nirvdrum has quit [Ping timeout: 265 seconds]
ur5us_ has quit [Ping timeout: 260 seconds]
nirvdrum has joined #jruby
<valphilnagel>
Hi headius[m], I just found out the OpenJFX component only works on Java 11 onwards... for JRubyFX, what's the minimum Java version ? Java 8 ?
ur5us_ has joined #jruby
snickers has joined #jruby
ur5us_ has quit [Ping timeout: 260 seconds]
<headius[m]>
valphilnagel: so I assume your changes will require moving to the OpenJFX packages, yeah?
<valphilnagel>
headius[m] I tried to compile jfx source code in Java 1.8, it failed with message :FAIL: java version mismatch: JDK version (1.8.0_252) < minimum version (11)
<valphilnagel>
It seems the OpenJFX is based starting from Java 11 onwards... I don't know how it affects the JRubyFX direction...
<valphilnagel>
JRubyFX is a very helpful library for me to develop some desktop app...
sagax has quit [Ping timeout: 260 seconds]
sagax has joined #jruby
rusk has quit [Remote host closed the connection]
xardion has quit [Remote host closed the connection]
<byteit101[m]>
headius: speaking of jrubyfx, I'd love to get feedback on this PR so I can drop most of the fxmlloader in favor of the native java fxmlloader once it's merged: https://github.com/jruby/jruby/pull/6141
<headius[m]>
byteit101: I have it in my queue to look at, will try to do that today
<byteit101[m]>
Awesome, thanks! I know it probably needs some more work, as per my questions at the top of it, but those are things I couldn't really answer myself