edu.rice.cs.dynamicjava.interpreter
Class EvaluatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.rice.cs.dynamicjava.interpreter.InterpreterException
edu.rice.cs.dynamicjava.interpreter.EvaluatorException
- All Implemented Interfaces:
- Serializable
public class EvaluatorException
- extends InterpreterException
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
printUserMessage
public void printUserMessage(PrintWriter out)
- Specified by:
printUserMessage in class InterpreterException