org.jruby.exceptions
Class JumpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jruby.exceptions.JumpException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JumpException.FlowControlException, 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.BreakJump
           
static class JumpException.FlowControlException
           
static class JumpException.NextJump
           
static class JumpException.RedoJump
           
static class JumpException.RetryJump
           
static class JumpException.ReturnJump
           
static class JumpException.SpecialJump
           
static class JumpException.ThrowJump
           
 
Field Summary
static JumpException.RedoJump REDO_JUMP
           
static JumpException.RetryJump RETRY_JUMP
           
static JumpException.SpecialJump SPECIAL_JUMP
           
 
Constructor Summary
JumpException()
          Constructor for flow-control-only JumpExceptions.
JumpException(java.lang.String msg)
          Constructor for JumpException.
JumpException(java.lang.String msg, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable fillInStackTrace()
          This method don't do anything for performance reasons.
protected  java.lang.Throwable originalFillInStackTrace()
           
 
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
 

Field Detail

RETRY_JUMP

public static final JumpException.RetryJump RETRY_JUMP

REDO_JUMP

public static final JumpException.RedoJump REDO_JUMP

SPECIAL_JUMP

public static final JumpException.SpecialJump SPECIAL_JUMP
Constructor Detail

JumpException

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


JumpException

public JumpException(java.lang.String msg)
Constructor for JumpException.

Parameters:
msg -

JumpException

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

fillInStackTrace

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

Overrides:
fillInStackTrace in class java.lang.Throwable
See Also:
Throwable.fillInStackTrace()

originalFillInStackTrace

protected java.lang.Throwable originalFillInStackTrace()


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