org.jruby.exceptions
Class RaiseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jruby.exceptions.JumpException
org.jruby.exceptions.RaiseException
- All Implemented Interfaces:
- java.io.Serializable
public class RaiseException
- extends JumpException
- See Also:
- Serialized Form
Field Summary |
static boolean |
DEBUG
|
Methods inherited from class java.lang.Throwable |
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
RaiseException
public RaiseException(RubyException actException)
RaiseException
public RaiseException(Ruby runtime,
RubyClass excptnClass,
java.lang.String msg,
boolean nativeException)
RaiseException
public RaiseException(RubyException exception,
boolean isNativeException)
RaiseException
public RaiseException(java.lang.Throwable cause,
NativeException nativeException)
createNativeRaiseException
public static RaiseException createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause)
getException
public RubyException getException()
- Gets the exception
- Returns:
- Returns a RubyException
setException
protected void setException(RubyException newException,
boolean nativeException)
- Sets the exception
- Parameters:
newException
- The exception to set
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)
- Overrides:
printStackTrace
in class java.lang.Throwable
Copyright © 2002-2007 JRuby Team. All Rights Reserved.