jfun.yan.xml
Class CyclicModuleDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.yan.xml.ConfigurationException
                  extended by jfun.yan.xml.CyclicModuleDependencyException
All Implemented Interfaces:
java.io.Serializable

public class CyclicModuleDependencyException
extends ConfigurationException

Represents an exception when module files have circular dependency.

Author:
Ben Yu Nov 20, 2005 4:28:24 PM
See Also:
Serialized Form

Constructor Summary
CyclicModuleDependencyException(java.lang.String msg, Location loc)
          Create a CyclicModuleDependencyException object.
 
Method Summary
 java.util.Stack getDependencyTrace()
          Get the dependency trace that caused the cycle.
 void printDependencyTrace()
          Prints the dependency trace to the standard error output.
 void printDependencyTrace(java.io.PrintStream out)
          Print the dependency trace.
 void printDependencyTrace(java.io.PrintWriter out)
          Print the dependency trace.
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 void push(java.lang.Object obj)
          Pushes a frame to the exception.
 
Methods inherited from class jfun.yan.xml.ConfigurationException
getLocation
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CyclicModuleDependencyException

public CyclicModuleDependencyException(java.lang.String msg,
                                       Location loc)
Create a CyclicModuleDependencyException object.

Parameters:
msg - the error message.
loc - the location where the dependency cycle is detected.
Method Detail

push

public void push(java.lang.Object obj)
Pushes a frame to the exception.

Parameters:
obj - the frame.

getDependencyTrace

public java.util.Stack getDependencyTrace()
Get the dependency trace that caused the cycle.


printDependencyTrace

public void printDependencyTrace(java.io.PrintStream out)
Print the dependency trace.

Parameters:
out - the output stream.

printDependencyTrace

public void printDependencyTrace(java.io.PrintWriter out)
Print the dependency trace.

Parameters:
out - the output writer.

printDependencyTrace

public void printDependencyTrace()
Prints the dependency trace to the standard error output.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable