edu.neu.ccs.demeter.dj
Class VisitorMethodException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--edu.neu.ccs.demeter.dj.VisitorMethodException
All Implemented Interfaces:
Serializable

public class VisitorMethodException
extends RuntimeException

Thrown by Visitor.invokeMethod(String, Object, Class) when a visitor method throws an exception.

See Also:
Serialized Form

Constructor Summary
VisitorMethodException(Throwable exception)
          Construct a VisitorMethodException wrapper around the exception thrown by the visitor method.
 
Method Summary
 Throwable getException()
          Get the exception thrown by the visitor method.
 void printStackTrace()
          Prints the stack trace of the exception thrown by the visitor method in place of this one, to stderr.
 void printStackTrace(PrintStream ps)
          Print the stack trace of the exception thrown by the visitor method in place of this one.
 void printStackTrace(PrintWriter pw)
          Print the stack trace of the exception thrown by the visitor method in place of this one.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisitorMethodException

public VisitorMethodException(Throwable exception)
Construct a VisitorMethodException wrapper around the exception thrown by the visitor method.

Method Detail

getException

public Throwable getException()
Get the exception thrown by the visitor method.


printStackTrace

public void printStackTrace()
Prints the stack trace of the exception thrown by the visitor method in place of this one, to stderr.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream ps)
Print the stack trace of the exception thrown by the visitor method in place of this one.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter pw)
Print the stack trace of the exception thrown by the visitor method in place of this one.

Overrides:
printStackTrace in class Throwable