koala.dynamicjava.interpreter.error
Class ReturnException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by koala.dynamicjava.interpreter.error.ExecutionError
              extended by koala.dynamicjava.interpreter.error.ReturnException
All Implemented Interfaces:
Serializable

public class ReturnException
extends ExecutionError

This error is thrown by an interpreted throw statement

Version:
1.0 - 1999/05/26
Author:
Stephane Hillion
See Also:
Serialized Form

Field Summary
 
Fields inherited from class koala.dynamicjava.interpreter.error.ExecutionError
SHOW_CAUSE_PROPERTY, SHOW_TRACE_PROPERTY, thrown
 
Constructor Summary
ReturnException(String s, Node n)
          A ReturnException with no value.
ReturnException(String s, Object o, Node n)
          A ReturnException with a value.
 
Method Summary
 Object getValue()
          Returns the value returned
 boolean hasValue()
          Whether or not the return statement had a value
 
Methods inherited from class koala.dynamicjava.interpreter.error.ExecutionError
getMessage, getNode, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReturnException

public ReturnException(String s,
                       Node n)
A ReturnException with no value.


ReturnException

public ReturnException(String s,
                       Object o,
                       Node n)
A ReturnException with a value.

Method Detail

getValue

public Object getValue()
Returns the value returned


hasValue

public boolean hasValue()
Whether or not the return statement had a value