public class RaiseException extends JumpException
JumpException.FlowControlException, JumpException.SpecialJumpSPECIAL_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,
IRubyObject... args)
Construct a new throwable RaiseException appropriate for the target Ruby exception class.
|
static RaiseException |
from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg)
Construct a new throwable RaiseException appropriate for the target Ruby exception class.
|
static RaiseException |
from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace)
Construct a new throwable RaiseException appropriate for the target Ruby exception class.
|
static RaiseException |
from(Ruby runtime,
java.lang.String exceptionPath,
IRubyObject... args)
Construct a new throwable RaiseException appropriate for the target Ruby exception class.
|
static RaiseException |
from(Ruby runtime,
java.lang.String exceptionPath,
java.lang.String msg)
Construct a new throwable RaiseException appropriate for the target Ruby exception class.
|
static RaiseException |
from(Ruby runtime,
java.lang.String exceptionPath,
java.lang.String msg,
IRubyObject backtrace)
Construct a new throwable RaiseException appropriate for the target Ruby exception class.
|
java.lang.Throwable |
getCause() |
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.
|
originalFillInStackTraceprotected 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()
JumpExceptionfillInStackTrace in class JumpExceptionThrowable.fillInStackTrace()public static RaiseException from(Ruby runtime, RubyClass exceptionClass, java.lang.String msg)
runtime - the current JRuby runtimeexceptionClass - the class of the exception to construct and raisemsg - a simple message for the exceptionpublic static RaiseException from(Ruby runtime, RubyClass exceptionClass, java.lang.String msg, IRubyObject backtrace)
runtime - the current JRuby runtimeexceptionClass - the class of the exception to construct and raisemsg - a simple message for the exceptionbacktrace - a Ruby object (usually an Array) to use for the exception's backtracepublic static RaiseException from(Ruby runtime, RubyClass exceptionClass, IRubyObject... args)
runtime - the current JRuby runtimeexceptionClass - the class of the exception to construct and raiseargs - the arguments for the exception's constructorpublic static RaiseException from(Ruby runtime, java.lang.String exceptionPath, java.lang.String msg)
runtime - the current JRuby runtimeexceptionPath - a string representing the fully-qualified constant path to look up the exceptionmsg - a simple message for the exceptionpublic static RaiseException from(Ruby runtime, java.lang.String exceptionPath, java.lang.String msg, IRubyObject backtrace)
runtime - the current JRuby runtimeexceptionPath - a string representing the fully-qualified constant path to look up the exceptionmsg - a simple message for the exceptionbacktrace - a Ruby object (usually an Array) to use for the exception's backtracepublic static RaiseException from(Ruby runtime, java.lang.String exceptionPath, IRubyObject... args)
runtime - the current JRuby runtimeString exceptionPathargs - the arguments for the exception's constructorpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic 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)
@Deprecated public static RaiseException from(RubyException exception, IRubyObject backtrace)
Copyright © 2001-2022 JRuby. All Rights Reserved.