org.jruby.exceptions
Class JumpException

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

public class JumpException
extends java.lang.RuntimeException

This class should be used for performance reasons if the Exception don't need a stack trace.

Author:
jpetersen
See Also:
Serialized Form

Nested Class Summary
static class JumpException.JumpType
           
 
Constructor Summary
JumpException()
          Constructor for flow-control-only JumpExceptions.
JumpException(JumpException.JumpType jumpType)
          Constructor for JumpException.
JumpException(java.lang.String msg, JumpException.JumpType jumpType)
          Constructor for JumpException.
JumpException(java.lang.String msg, java.lang.Throwable cause, JumpException.JumpType jumpType)
           
 
Method Summary
 java.lang.Throwable fillInStackTrace()
          This method don't do anything for performance reasons.
 JumpException.JumpType getJumpType()
           
 java.lang.Object getTarget()
           
 java.lang.Object getValue()
          Get the value that will returned when the jump reaches its destination
 boolean isBreakInKernelLoop()
           
protected  java.lang.Throwable originalFillInStackTrace()
           
 void setBreakInKernelLoop(boolean inKernelLoop)
           
 void setJumpType(JumpException.JumpType jumpType)
           
 void setTarget(java.lang.Object target)
           
 void setValue(java.lang.Object value)
          Set the value that will be returned when the jump reaches its destination
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JumpException

public JumpException()
Constructor for flow-control-only JumpExceptions.


JumpException

public JumpException(JumpException.JumpType jumpType)
Constructor for JumpException.


JumpException

public JumpException(java.lang.String msg,
                     JumpException.JumpType jumpType)
Constructor for JumpException.

Parameters:
msg -

JumpException

public JumpException(java.lang.String msg,
                     java.lang.Throwable cause,
                     JumpException.JumpType jumpType)
Method Detail

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
This method don't do anything for performance reasons.

See Also:
Throwable.fillInStackTrace()

originalFillInStackTrace

protected java.lang.Throwable originalFillInStackTrace()

getJumpType

public JumpException.JumpType getJumpType()

setJumpType

public void setJumpType(JumpException.JumpType jumpType)

getTarget

public java.lang.Object getTarget()
Returns:
Returns the target.

setTarget

public void setTarget(java.lang.Object target)
Parameters:
target - The target (destination) of the jump.

getValue

public java.lang.Object getValue()
Get the value that will returned when the jump reaches its destination

Returns:
Returns the return value.

setValue

public void setValue(java.lang.Object value)
Set the value that will be returned when the jump reaches its destination

Parameters:
value - the value to be returned.

setBreakInKernelLoop

public void setBreakInKernelLoop(boolean inKernelLoop)

isBreakInKernelLoop

public boolean isBreakInKernelLoop()


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