|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jruby.exceptions.JumpException
public class JumpException
This class should be used for performance reasons if the Exception don't need a stack trace.
| 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 |
|---|
public JumpException()
public JumpException(JumpException.JumpType jumpType)
public JumpException(java.lang.String msg,
JumpException.JumpType jumpType)
msg -
public JumpException(java.lang.String msg,
java.lang.Throwable cause,
JumpException.JumpType jumpType)
| Method Detail |
|---|
public java.lang.Throwable fillInStackTrace()
fillInStackTrace in class java.lang.ThrowableThrowable.fillInStackTrace()protected java.lang.Throwable originalFillInStackTrace()
public JumpException.JumpType getJumpType()
public void setJumpType(JumpException.JumpType jumpType)
public java.lang.Object getTarget()
public void setTarget(java.lang.Object target)
target - The target (destination) of the jump.public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the value to be returned.public void setBreakInKernelLoop(boolean inKernelLoop)
public boolean isBreakInKernelLoop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||