edu.rice.cs.dynamicjava.interpreter
Class EvaluatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.rice.cs.dynamicjava.interpreter.InterpreterException
              extended by edu.rice.cs.dynamicjava.interpreter.EvaluatorException
All Implemented Interfaces:
Serializable

public class EvaluatorException
extends InterpreterException

See Also:
Serialized Form

Constructor Summary
EvaluatorException(Throwable cause)
           
EvaluatorException(Throwable cause, String... extraStackElements)
           
EvaluatorException(Throwable cause, String[]... extraStackElements)
          Modifies the stack trace of cause so that the calling context shared between cause and the method calling this constructor is eliminated.
 
Method Summary
 void printUserMessage(PrintWriter out)
           
 
Methods inherited from class edu.rice.cs.dynamicjava.interpreter.InterpreterException
getUserMessage, printUserMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

EvaluatorException

public EvaluatorException(Throwable cause)

EvaluatorException

public EvaluatorException(Throwable cause,
                          String... extraStackElements)

EvaluatorException

public EvaluatorException(Throwable cause,
                          String[]... extraStackElements)
Modifies the stack trace of cause so that the calling context shared between cause and the method calling this constructor is eliminated. Additional elements may be removed as well by explicitly listing them as a subarray of extraStackElements. If a mismatch is found between the two calling contexts, no further filtering occurs -- thus, extraStackElements will not be matched unless this constructor is called from a method that is part of cause's calling context.

Parameters:
cause - An exception that should be presented to the user.
extraStackElements - Any number of alternatives for additional stack elements that should be removed from cause's calling context. The format for each string is a class name followed by a method name, and delimited by a period: "java.lang.String.substring". The order is bottom-to-top -- the first method in each subarray is expected to have invoked the second method, etc.
Method Detail

printUserMessage

public void printUserMessage(PrintWriter out)
Specified by:
printUserMessage in class InterpreterException