// SSS FIXME: Is this code effectively equivalent to RuntimeHelpers.isJavaExceptionHandled?
private boolean exceptionHandled(ThreadContext context, IRubyObject excType, Object excObj) {
Ruby runtime = context.runtime;
if (excObj instanceof IRubyObject) {
// regular ruby exception
if (!(excType instanceof RubyModule)) throw runtime.newTypeError("class or module required for rescue clause. Found: " + excType);
return excType.callMethod(context, "===", (IRubyObject)excObj).isTrue();
} else if (runtime.getException().op_ge(excType).isTrue() || runtime.getObject() == excType) {
// convert java obj to a ruby object and try again
return excType.callMethod(context, "===", JavaUtil.convertJavaToUsableRubyObject(runtime, excObj)).isTrue();
} else if (excType instanceof RubyClass && excType.getInstanceVariables().hasInstanceVariable("@java_class")) {