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,
String msg,
boolean nativeException) |
RaiseException(Ruby runtime,
RubyClass excptnClass,
String msg,
IRubyObject backtrace,
boolean nativeException) |
RaiseException(Throwable cause,
NativeException nativeException) |
Modifier and Type | Method and Description |
---|---|
static RaiseException |
createNativeRaiseException(Ruby runtime,
Throwable cause)
Deprecated.
|
static RaiseException |
createNativeRaiseException(Ruby runtime,
Throwable cause,
Member target)
Deprecated.
|
RubyException |
getException()
Gets the exception
|
String |
getMessage() |
static StackTraceElement[] |
javaTraceFromRubyTrace(RubyStackTraceElement[] trace) |
protected void |
setException(RubyException newException,
boolean nativeException)
Sets the exception
|
fillInStackTrace, originalFillInStackTrace
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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, String msg, boolean nativeException)
public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, IRubyObject backtrace, boolean nativeException)
public RaiseException(RubyException exception, boolean nativeException)
public RaiseException(Throwable cause, NativeException nativeException)
@Deprecated public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause)
@Deprecated public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause, Member target)
public String getMessage()
getMessage
in class Throwable
public final RubyException getException()
protected final void setException(RubyException newException, boolean nativeException)
newException
- The exception to setpublic static StackTraceElement[] javaTraceFromRubyTrace(RubyStackTraceElement[] trace)
Copyright © 2001-2017 JRuby. All Rights Reserved.