public class RaiseException extends JumpException
JumpException.FlowControlException, JumpException.SpecialJump
SPECIAL_JUMP
Modifier | Constructor and Description |
---|---|
|
RaiseException(RubyException exception)
Deprecated.
|
|
RaiseException(RubyException exception,
boolean unused)
Deprecated.
|
|
RaiseException(RubyException exception,
IRubyObject backtrace)
Deprecated.
|
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg)
Deprecated.
|
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
boolean unused)
Deprecated.
|
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace)
Deprecated.
|
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace,
boolean unused)
Deprecated.
|
protected |
RaiseException(java.lang.String message,
RubyException exception) |
|
RaiseException(java.lang.Throwable cause,
NativeException nativeException)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RaiseException |
createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause)
Deprecated.
|
static RaiseException |
createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause,
java.lang.reflect.Member target)
Deprecated.
|
java.lang.Throwable |
fillInStackTrace()
This method don't do anything for performance reasons.
|
static RaiseException |
from(RubyException exception,
IRubyObject backtrace)
Deprecated.
|
static RaiseException |
from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg) |
static RaiseException |
from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace) |
RubyException |
getException()
Gets the exception
|
java.lang.String |
getMessage() |
static java.lang.StackTraceElement[] |
javaTraceFromRubyTrace(RubyStackTraceElement[] trace) |
protected void |
setException(RubyException newException)
Sets the exception
|
protected void |
setException(RubyException newException,
boolean unused)
Deprecated.
|
originalFillInStackTrace
protected RaiseException(java.lang.String message, RubyException exception)
@Deprecated public RaiseException(java.lang.Throwable cause, NativeException nativeException)
@Deprecated public RaiseException(RubyException exception)
@Deprecated public RaiseException(RubyException exception, boolean unused)
@Deprecated public RaiseException(RubyException exception, IRubyObject backtrace)
@Deprecated public RaiseException(Ruby runtime, RubyClass exceptionClass, java.lang.String msg)
@Deprecated public RaiseException(Ruby runtime, RubyClass exceptionClass, java.lang.String msg, boolean unused)
@Deprecated public RaiseException(Ruby runtime, RubyClass exceptionClass, java.lang.String msg, IRubyObject backtrace)
@Deprecated public RaiseException(Ruby runtime, RubyClass exceptionClass, java.lang.String msg, IRubyObject backtrace, boolean unused)
public final java.lang.Throwable fillInStackTrace()
JumpException
fillInStackTrace
in class JumpException
Throwable.fillInStackTrace()
@Deprecated public static RaiseException from(RubyException exception, IRubyObject backtrace)
public static RaiseException from(Ruby runtime, RubyClass exceptionClass, java.lang.String msg)
public static RaiseException from(Ruby runtime, RubyClass exceptionClass, java.lang.String msg, IRubyObject backtrace)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public final RubyException getException()
protected final void setException(RubyException newException)
newException
- The exception to setpublic static java.lang.StackTraceElement[] javaTraceFromRubyTrace(RubyStackTraceElement[] trace)
@Deprecated public static RaiseException createNativeRaiseException(Ruby runtime, java.lang.Throwable cause)
@Deprecated public static RaiseException createNativeRaiseException(Ruby runtime, java.lang.Throwable cause, java.lang.reflect.Member target)
@Deprecated protected final void setException(RubyException newException, boolean unused)
Copyright © 2001-2020 JRuby. All Rights Reserved.