@Override protected RaiseException constructThrowable(String message) { return new LoadError(message, this); } }
/** * @param exceptionClass * @param message * @return */ public RaiseException newRaiseException(RubyClass exceptionClass, String message) { return RaiseException.from(this, exceptionClass, message); }
@Override protected RaiseException constructThrowable(String message) { return new StandardError(message, this); } }
private static void errorMissingEquals(String label) { MainExitException mee; mee = new MainExitException(1, "missing argument for --" + label + "\n"); mee.setUsageError(true); throw mee; }
/** This method don't do anything for performance reasons. * * @see Throwable#fillInStackTrace() */ @Override public Throwable fillInStackTrace() { if (RubyInstanceConfig.JUMPS_HAVE_BACKTRACE) { return originalFillInStackTrace(); } return this; }
private void disallowedInRubyOpts(CharSequence option) { if (rubyOpts) { throw new MainExitException(1, "jruby: invalid switch in RUBYOPT: " + option + " (RuntimeError)"); } }
@Override protected RaiseException constructThrowable(String message) { return new NoMemoryError(message, this); } }
@Override protected RaiseException constructThrowable(String message) { return new ArgumentError(message, this); } }
@Override protected RaiseException constructThrowable(String message) { return new IndexError(message, this); } }
@Override protected RaiseException constructThrowable(String message) { return new SyntaxError(message, this); } }
@Override protected RaiseException constructThrowable(String message) { return new NotImplementedError(message, this); } }
@Override protected RaiseException constructThrowable(String message) { return new SecurityError(message, this); } }
private static void errorMissingEquals(String label) { MainExitException mee; mee = new MainExitException(1, "missing argument for --" + label + "\n"); mee.setUsageError(true); throw mee; }
/** This method don't do anything for performance reasons. * * @see Throwable#fillInStackTrace() */ @Override public Throwable fillInStackTrace() { if (RubyInstanceConfig.JUMPS_HAVE_BACKTRACE) { return originalFillInStackTrace(); } return this; }
@Override protected RaiseException constructThrowable(String message) { return new LoadError(message, this); } }
/** * @param exceptionClass * @param message * @return */ public RaiseException newRaiseException(RubyClass exceptionClass, String message) { return RaiseException.from(this, exceptionClass, message); }
@Override protected RaiseException constructThrowable(String message) { return new NoMemoryError(message, this); } }
@Override protected RaiseException constructThrowable(String message) { return new ArgumentError(message, this); } }
/** This method don't do anything for performance reasons. * * @see Throwable#fillInStackTrace() */ @Override public Throwable fillInStackTrace() { if (RubyInstanceConfig.JUMPS_HAVE_BACKTRACE) { return originalFillInStackTrace(); } return this; }