Top Description Inners Fields Constructors Methods
org.jruby.exceptions

public Class JumpException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.jruby.exceptions.JumpException.FlowControlException, org.jruby.exceptions.RaiseException
Imports
org.jruby.Ruby, .RubyInstanceConfig, .RubyLocalJumpError.Reason, org.jruby.runtime.builtin.IRubyObject

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final long
public static final JumpException.SpecialJump

Constructor Summary

AccessConstructor and Description
public
JumpException()

Constructor for flow-control-only JumpExceptions.

public
JumpException(String msg)

Constructor for JumpException.

public

Method Summary

Modifier and TypeMethod and Description
public Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

This method don't do anything for performance reasons.

protected final Throwable

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

SPECIAL_JUMPback to summary
public static final JumpException.SpecialJump SPECIAL_JUMP

Constructor Detail

JumpExceptionback to summary
public JumpException()

Constructor for flow-control-only JumpExceptions.

JumpExceptionback to summary
public JumpException(String msg)

Constructor for JumpException.

JumpExceptionback to summary
public JumpException(String msg, Throwable cause)

Method Detail

fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

This method don't do anything for performance reasons.

Returns:Throwable

Doc from java.lang.Throwable.fillInStackTrace.

a reference to this Throwable instance.

Annotations
@Override
See Also
Throwable#fillInStackTrace()
originalFillInStackTraceback to summary
protected final Throwable originalFillInStackTrace()
org.jruby.exceptions back to summary

public Class JumpException.FlowControlException

extends JumpException
implements Unrescuable
Class Inheritance
All Implemented Interfaces
org.jruby.exceptions.Unrescuable
Known Direct Subclasses
org.jruby.exceptions.JumpException.SpecialJump

Field Summary

Modifier and TypeField and Description
protected final RubyLocalJumpError.Reason
protected int
protected Object
Inherited from org.jruby.exceptions.JumpException:
SPECIAL_JUMP

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public RaiseException
public int
public Object
public void
setTarget(int target)

public void
Inherited from org.jruby.exceptions.JumpException:
fillInStackTraceoriginalFillInStackTrace

Field Detail

reasonback to summary
protected final RubyLocalJumpError.Reason reason
targetback to summary
protected int target
valueback to summary
protected Object value

Constructor Detail

FlowControlExceptionback to summary
public FlowControlException(RubyLocalJumpError.Reason reason)
FlowControlExceptionback to summary
public FlowControlException(RubyLocalJumpError.Reason reason, int target, Object value)

Method Detail

buildExceptionback to summary
public RaiseException buildException(Ruby runtime)
getTargetback to summary
public int getTarget()
getValueback to summary
public Object getValue()
setTargetback to summary
public void setTarget(int target)
setValueback to summary
public void setValue(Object value)
org.jruby.exceptions back to summary

public Class JumpException.SpecialJump

extends FlowControlException
Class Inheritance

Field Summary

Inherited from org.jruby.exceptions.JumpException.FlowControlException:
reasontargetvalue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Throwable
fillInStackTrace()

Overrides org.jruby.exceptions.JumpException.fillInStackTrace.

This method don't do anything for performance reasons.

Inherited from org.jruby.exceptions.JumpException.FlowControlException:
buildExceptiongetTargetgetValuesetTargetsetValue

Constructor Detail

SpecialJumpback to summary
public SpecialJump()

Method Detail

fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides org.jruby.exceptions.JumpException.fillInStackTrace.

Doc from org.jruby.exceptions.JumpException.fillInStackTrace.

This method don't do anything for performance reasons.

Returns:Throwable

Doc from java.lang.Throwable.fillInStackTrace.

a reference to this Throwable instance.

Annotations
@Override