Top Description Fields Constructors Methods
org.jruby.exceptions

public Class CatchThrow

extends RuntimeException
implements Unrescuable
Class Inheritance
All Implemented Interfaces
org.jruby.exceptions.Unrescuable
Known Direct Subclasses
org.jruby.RubyContinuation.Continuation
Imports
org.jruby.RubyArray, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

A flow-control exception used internally for Ruby's catch/throw functionality.

Field Summary

Modifier and TypeField and Description
public IRubyObject[]
public final IRubyObject

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public static IRubyObject
enter(ThreadContext context, IRubyObject yielded, Block block)

public synchronized Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.

Field Detail

argsback to summary
public IRubyObject[] args
tagback to summary
public final IRubyObject tag

Constructor Detail

CatchThrowback to summary
public CatchThrow()
CatchThrowback to summary
public CatchThrow(IRubyObject tag)

Method Detail

enterback to summary
public static IRubyObject enter(ThreadContext context, IRubyObject yielded, Block block)
fillInStackTraceback to summary
public synchronized Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override