/** * Method still in use by jruby-openssl <= 0.5.2 */ public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause) { return createNativeRaiseException(runtime, cause, null); }
/** * Method still in use by jruby-openssl <= 0.5.2 */ public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause) { return createNativeRaiseException(runtime, cause, null); }
private RaiseException createRaiseException(Throwable exception, Member target) { return RaiseException.createNativeRaiseException(runtime, exception, target); }
private RaiseException createRaiseException(Throwable exception, Member target) { return RaiseException.createNativeRaiseException(runtime, exception, target); }
@Deprecated public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause) { return createNativeRaiseException(runtime, cause, null); }
@Deprecated public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause) { return createNativeRaiseException(runtime, cause, null); }
public static IRubyObject rewriteStackTraceAndThrow(Throwable t, Ruby runtime) { RaiseException rewriteStackTrace = RaiseException.createNativeRaiseException(runtime, t); t.setStackTrace(rewriteStackTrace.getStackTrace()); throwException(t); // not reached return null; } }
public static IRubyObject rewriteStackTraceAndThrow(Throwable t, Ruby runtime) { RaiseException rewriteStackTrace = RaiseException.createNativeRaiseException(runtime, t); t.setStackTrace(rewriteStackTrace.getStackTrace()); throwException(t); // not reached return null; } }
throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (IllegalAccessException e) { throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); throw (Error)cause; } else { throw RaiseException.createNativeRaiseException(runtime, cause, method);
throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (IllegalAccessException e) { throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); throw (Error)cause; } else { throw RaiseException.createNativeRaiseException(runtime, cause, method);
throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (IllegalAccessException e) { throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); throw (Error)cause; } else { throw RaiseException.createNativeRaiseException(runtime, cause, method);
throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (IllegalAccessException e) { throw RaiseException.createNativeRaiseException(runtime, e, method); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); throw (Error)cause; } else { throw RaiseException.createNativeRaiseException(runtime, cause, method);
public RackResponse call(final RackEnvironment env) { final Ruby runtime = getRuntime(); try { final RackInput io = new RackInput(runtime, env); try { IRubyObject servlet_env = JavaEmbedUtils.javaToRuby(runtime, env); if (env instanceof RackEnvironment.ToIO) { ((RackEnvironment.ToIO) env).setIO(io); } else { // TODO this is @deprecated and will be removed ... // NOTE JRuby 1.7.x does not like instance vars for Java : // warning: instance vars on non-persistent Java type // Java::OrgJrubyRackServlet::ServletRackEnvironment // (http://wiki.jruby.org/Persistence) runtime.evalScriptlet("require 'jruby/rack/environment'"); adapter.setInstanceVariable(servlet_env, "@_io", io); } IRubyObject response = adapter.callMethod(getApplication(), "call", servlet_env); return (RackResponse) JavaEmbedUtils.rubyToJava(runtime, response, RackResponse.class); } finally { io.close(); } } catch (IOException e) { throw RaiseException.createNativeRaiseException(runtime, e); } }