public class RaiseException extends JumpException
JumpException.BreakJump, JumpException.FlowControlException, JumpException.NextJump, JumpException.RedoJump, JumpException.RetryJump, JumpException.ReturnJump, JumpException.SpecialJump| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
private RubyException |
exception |
private boolean |
nativeException |
private java.lang.String |
providedMessage |
private static long |
serialVersionUID |
NEXT_JUMP, REDO_JUMP, RETRY_JUMP, 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 isNativeException) |
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 |
|---|---|
private static java.lang.String |
buildMessage(java.lang.Throwable exception) |
static RaiseException |
createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause)
Method still in use by jruby-openssl <= 0.5.2
|
static RaiseException |
createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause,
java.lang.reflect.Member target) |
private void |
doCallEventHook(ThreadContext context) |
private void |
doSetLastError(ThreadContext context) |
RubyException |
getException()
Gets the exception
|
java.lang.String |
getMessage() |
static java.lang.StackTraceElement[] |
javaTraceFromRubyTrace(RubyStackTraceElement[] trace) |
private void |
preRaise(ThreadContext context) |
private void |
preRaise(ThreadContext context,
IRubyObject backtrace) |
private void |
preRaise(ThreadContext context,
java.lang.StackTraceElement[] javaTrace) |
protected void |
setException(RubyException newException,
boolean nativeException)
Sets the exception
|
fillInStackTrace, originalFillInStackTracepublic static final boolean DEBUG
private static final long serialVersionUID
private RubyException exception
private java.lang.String providedMessage
private boolean nativeException
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 isNativeException)
public RaiseException(java.lang.Throwable cause,
NativeException nativeException)
public static RaiseException createNativeRaiseException(Ruby runtime, java.lang.Throwable cause)
public static RaiseException createNativeRaiseException(Ruby runtime, java.lang.Throwable cause, java.lang.reflect.Member target)
private static java.lang.String buildMessage(java.lang.Throwable exception)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic RubyException getException()
private void preRaise(ThreadContext context)
private void preRaise(ThreadContext context, java.lang.StackTraceElement[] javaTrace)
private void preRaise(ThreadContext context, IRubyObject backtrace)
private void doCallEventHook(ThreadContext context)
private void doSetLastError(ThreadContext context)
protected void setException(RubyException newException, boolean nativeException)
newException - The exception to setpublic static java.lang.StackTraceElement[] javaTraceFromRubyTrace(RubyStackTraceElement[] trace)