private static IRubyObject raiseTimeoutErrorIfMatches(ThreadContext context, final IRubyObject timeout, final RaiseException ex, final IRubyObject id) { // check if it's the exception intended for us if ( ex.getException().getInternalVariable("__identifier__") == id ) { final RubyException rubyException = ex.getException(); return RubyKernel.raise( // throws context, context.runtime.getKernel(), new IRubyObject[] { getClassFrom(timeout, "Error"), // Timeout::Error rubyException.callMethod(context, "message"), rubyException.callMethod(context, "backtrace") }, Block.NULL_BLOCK); } return null; }
private static IRubyObject raiseTimeoutErrorIfMatches(ThreadContext context, final IRubyObject timeout, final RaiseException ex, final IRubyObject id) { // check if it's the exception intended for us if ( ex.getException().getInternalVariable("__identifier__") == id ) { final RubyException rubyException = ex.getException(); return RubyKernel.raise( // throws context, context.runtime.getKernel(), new IRubyObject[] { getClassFrom(timeout, "Error"), // Timeout::Error rubyException.callMethod(context, "message"), rubyException.callMethod(context, "backtrace") }, Block.NULL_BLOCK); } return null; }
if (re.getException().getInternalVariable("__identifier__") == id) { return raiseTimeoutError(context, re); } else {
if (re.getException().getInternalVariable("__identifier__") == id) { return raiseTimeoutError(context, re); } else {
if (re.getException().getInternalVariable("__identifier__") == id) { return raiseTimeoutError(context, re);
if (re.getException().getInternalVariable("__identifier__") == id) { return raiseTimeoutError(context, re);