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 |
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,
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)
Method still in use by jruby-openssl <= 0.5.2
|
static RaiseException |
createNativeRaiseException(Ruby runtime,
Throwable cause,
Member target) |
RubyException |
getException()
Gets the exception
|
String |
getMessage() |
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 isNativeException)
public RaiseException(Throwable cause, NativeException nativeException)
public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause)
public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause, Member target)
public String getMessage()
getMessage
in class Throwable
public RubyException getException()
protected void setException(RubyException newException, boolean nativeException)
newException
- The exception to setCopyright © 2001-2014 JRuby. All Rights Reserved.