| Modifier and Type | Field and Description |
|---|---|
| private RubyException | |
| private String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace)
Deprecated
|
| public | RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace, boolean unused)
Deprecated
|
| Modifier and Type | Method and Description |
|---|---|
| public static RaiseException | |
| public static RaiseException | |
| private void | |
| public final Throwable | fillInStackTrace()
Overrides org. This method don't do anything for performance reasons. |
| private void | |
| private static RubyClass | |
| public static RaiseException | Returns: a RaiseException instance appropriate for the target Ruby exception classthe current JRuby runtime runtime, RubyClass the class of the exception to construct and raise exceptionClass, String a simple message for the exception msg)Construct a new throwable RaiseException appropriate for the target Ruby exception class. |
| public static RaiseException | Returns: a RaiseException instance appropriate for the target Ruby exception classthe current JRuby runtime runtime, RubyClass the class of the exception to construct and raise exceptionClass, String a simple message for the exception msg, IRubyObject a Ruby object (usually an Array) to use for the exception's backtrace backtrace)Construct a new throwable RaiseException appropriate for the target Ruby exception class. |
| public static RaiseException | Returns: a RaiseException instance appropriate for the target Ruby exception classthe current JRuby runtime runtime, RubyClass the class of the exception to construct and raise exceptionClass, IRubyObject... the arguments for the exception's constructor args)Construct a new throwable RaiseException appropriate for the target Ruby exception class. |
| public static RaiseException | Returns: a RaiseException instance appropriate for the target Ruby exception classthe current JRuby runtime runtime, String a string representing the fully-qualified constant path to look up the exception exceptionPath, String a simple message for the exception msg)Construct a new throwable RaiseException appropriate for the target Ruby exception class. |
| public static RaiseException | Returns: a RaiseException instance appropriate for the target Ruby exception classthe current JRuby runtime runtime, String a string representing the fully-qualified constant path to look up the exception exceptionPath, String a simple message for the exception msg, IRubyObject a Ruby object (usually an Array) to use for the exception's backtrace backtrace)Construct a new throwable RaiseException appropriate for the target Ruby exception class. |
| public static RaiseException | Returns: a RaiseException instance appropriate for the target Ruby exception classthe current JRuby runtimeString exceptionPath runtime, String exceptionPath, IRubyObject... the arguments for the exception's constructor args)Construct a new throwable RaiseException appropriate for the target Ruby exception class. |
| public static RaiseException | |
| public Throwable | getCause()
Overrides java. Returns the cause of this throwable or |
| public final RubyException | |
| public String | getMessage()
Overrides java. Returns the detail message string of this throwable. |
| private static boolean | |
| public static StackTraceElement[] | |
| private void | |
| private void | |
| private boolean | |
| protected final void | |
| protected final void | |
| private void | |
| private static JavaSites. | |
| private StackTraceElement[] |
| exception | back to summary |
|---|---|
| private RubyException exception | |
| providedMessage | back to summary |
|---|---|
| private String providedMessage | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| RaiseException | back to summary |
|---|---|
| protected RaiseException(String message, RubyException exception) | |
| RaiseException | back to summary |
|---|---|
| public RaiseException(Throwable cause, NativeException nativeException)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(RubyException exception)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(RubyException exception, boolean unused)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(RubyException exception, IRubyObject backtrace)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(Ruby runtime, RubyClass exceptionClass, String msg)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, boolean unused)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace)
Deprecated
| |
| RaiseException | back to summary |
|---|---|
| public RaiseException(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace, boolean unused)
Deprecated
| |
| createNativeRaiseException | back to summary |
|---|---|
| public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause)
Deprecated
| |
| createNativeRaiseException | back to summary |
|---|---|
| public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause, Member target)
Deprecated
| |
| doSetLastError | back to summary |
|---|---|
| private void doSetLastError(final ThreadContext context) | |
| fillInStackTrace | back to summary |
|---|---|
| public final Throwable fillInStackTrace() Overrides org. Doc from org. This method don't do anything for performance reasons.
| |
| fillInStackTraceSkipPreRaise | back to summary |
|---|---|
| private void fillInStackTraceSkipPreRaise() | |
| findExceptionClass | back to summary |
|---|---|
| private static RubyClass findExceptionClass(ThreadContext context, String exceptionPath) | |
| from | back to summary |
|---|---|
| public static RaiseException from(Ruby runtime, RubyClass exceptionClass, String msg) Construct a new throwable RaiseException appropriate for the target Ruby exception class. Note that this will produce a RaiseException that has fully prepared for being thrown, including:
| |
| from | back to summary |
|---|---|
| public static RaiseException from(Ruby runtime, RubyClass exceptionClass, String msg, IRubyObject backtrace) Construct a new throwable RaiseException appropriate for the target Ruby exception class.
| |
| from | back to summary |
|---|---|
| public static RaiseException from(Ruby runtime, RubyClass exceptionClass, IRubyObject... args) Construct a new throwable RaiseException appropriate for the target Ruby exception class.
| |
| from | back to summary |
|---|---|
| public static RaiseException from(Ruby runtime, String exceptionPath, String msg) Construct a new throwable RaiseException appropriate for the target Ruby exception class.
| |
| from | back to summary |
|---|---|
| public static RaiseException from(Ruby runtime, String exceptionPath, String msg, IRubyObject backtrace) Construct a new throwable RaiseException appropriate for the target Ruby exception class.
| |
| from | back to summary |
|---|---|
| public static RaiseException from(Ruby runtime, String exceptionPath, IRubyObject... args) Construct a new throwable RaiseException appropriate for the target Ruby exception class.
| |
| from | back to summary |
|---|---|
| public static RaiseException from(RubyException exception, IRubyObject backtrace)
Deprecated
| |
| getCause | back to summary |
|---|---|
| public Throwable getCause() Overrides java. Doc from java. Returns the cause of this throwable or This implementation returns the cause that was supplied via one of
the constructors requiring a | |
| getException | back to summary |
|---|---|
| public final RubyException getException() Gets the exception
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| isEmptyArray | back to summary |
|---|---|
| private static boolean isEmptyArray(final IRubyObject ary) | |
| javaTraceFromRubyTrace | back to summary |
|---|---|
| public static StackTraceElement[] javaTraceFromRubyTrace(RubyStackTraceElement[] trace) | |
| preRaise | back to summary |
|---|---|
| private void preRaise(ThreadContext context, IRubyObject backtrace, boolean capture) | |
| preRaise | back to summary |
|---|---|
| private void preRaise(ThreadContext context, StackTraceElement[] javaTrace)
Deprecated
| |
| requiresBacktrace | back to summary |
|---|---|
| private boolean requiresBacktrace(ThreadContext context) | |
| setException | back to summary |
|---|---|
| protected final void setException(RubyException newException) Sets the exception
| |
| setException | back to summary |
|---|---|
| protected final void setException(RubyException newException, boolean unused)
Deprecated
| |
| setStackTraceFromException | back to summary |
|---|---|
| private void setStackTraceFromException() | |
| sites | back to summary |
|---|---|
| private static JavaSites. | |
| skipFillInStackTracePart | back to summary |
|---|---|
| private StackTraceElement[] skipFillInStackTracePart(StackTraceElement[] trace) | |