public class RaiseException extends JumpException
JumpException.FlowControlException, JumpException.SpecialJump
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
SPECIAL_JUMP
Constructor and Description |
---|
RaiseException(RubyException actException)
Construct a new RaiseException to wrap the given Ruby exception for Java-land
throwing purposes.
|
RaiseException(RubyException exception,
boolean nativeException) |
RaiseException(RubyException exception,
IRubyObject backtrace)
Construct a new RaiseException to wrap the given Ruby exception for Java-land
throwing purposes.
|
RaiseException(Ruby runtime,
RubyClass excptnClass,
java.lang.String msg,
boolean nativeException) |
RaiseException(Ruby runtime,
RubyClass excptnClass,
java.lang.String msg,
IRubyObject backtrace,
boolean nativeException) |
RaiseException(java.lang.Throwable cause,
NativeException nativeException) |
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.
|
RubyException |
getException()
Gets the exception
|
java.lang.String |
getMessage() |
static java.lang.StackTraceElement[] |
javaTraceFromRubyTrace(RubyStackTraceElement[] trace) |
protected void |
setException(RubyException newException,
boolean nativeException)
Sets the exception
|
fillInStackTrace, originalFillInStackTrace
public static final boolean DEBUG
public RaiseException(RubyException actException)
actException
- The Ruby exception to wrappublic RaiseException(RubyException exception, IRubyObject backtrace)
exception
- The Ruby exception to wrapbacktrace
- public RaiseException(Ruby runtime, RubyClass excptnClass, java.lang.String msg, boolean nativeException)
public RaiseException(Ruby runtime, RubyClass excptnClass, java.lang.String msg, IRubyObject backtrace, boolean nativeException)
public RaiseException(RubyException exception, boolean nativeException)
public RaiseException(java.lang.Throwable cause, NativeException nativeException)
@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)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public final RubyException getException()
protected final void setException(RubyException newException, boolean nativeException)
newException
- The exception to setpublic static java.lang.StackTraceElement[] javaTraceFromRubyTrace(RubyStackTraceElement[] trace)
Copyright © 2001-2017 JRuby. All Rights Reserved.