org.jruby.exceptions
Class RaiseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.jruby.exceptions.JumpException
                  extended byorg.jruby.exceptions.RaiseException
All Implemented Interfaces:
java.io.Serializable

public class RaiseException
extends JumpException

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jruby.exceptions.JumpException
JumpException.JumpType
 
Constructor Summary
RaiseException(RubyException actException)
           
RaiseException(RubyException exception, boolean isNativeException)
           
RaiseException(Ruby runtime, RubyClass excptnClass, java.lang.String msg, boolean nativeException)
           
RaiseException(java.lang.Throwable cause, NativeException nativeException)
           
 
Method Summary
static RaiseException createNativeRaiseException(Ruby runtime, java.lang.Throwable cause)
           
 java.lang.Throwable fillInStackTrace()
          This method don't do anything for performance reasons.
 RubyException getException()
          Gets the exception
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
protected  void setException(RubyException newException, boolean nativeException)
          Sets the exception
 
Methods inherited from class org.jruby.exceptions.JumpException
getJumpType, getTarget, getValue, isBreakInKernelLoop, originalFillInStackTrace, setBreakInKernelLoop, setJumpType, setTarget, setValue
 
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
 

Constructor Detail

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)
Method Detail

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

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
Description copied from class: JumpException
This method don't do anything for performance reasons.

Overrides:
fillInStackTrace in class JumpException
See Also:
Throwable.fillInStackTrace()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream ps)

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.