org.apache.commons.attributes
Class CircularDependencyError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.apache.commons.attributes.RepositoryError
              extended byorg.apache.commons.attributes.CircularDependencyError
All Implemented Interfaces:
java.io.Serializable

public class CircularDependencyError
extends RepositoryError

Thrown when an attribute repository class can't be loaded because it resulted in a circular dependency.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.attributes.RepositoryError
 
Fields inherited from class java.lang.Error
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CircularDependencyError(java.lang.String className, java.util.List dependencyList)
          Create a new CircularDependencyError.
 
Method Summary
private static java.lang.String listDeps(java.util.List dependencyList)
          Joins together the elements of a list with -> delimiters.
 
Methods inherited from class org.apache.commons.attributes.RepositoryError
getNested
 
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

CircularDependencyError

public CircularDependencyError(java.lang.String className,
                               java.util.List dependencyList)
Create a new CircularDependencyError.

Parameters:
className - the name of the class that started it all.
dependencyList - a list of the classes that the original class depended on, the classes they depended on, and so on. The list should show the chain of dependencies that resulted in the exception being thrown.
Method Detail

listDeps

private static java.lang.String listDeps(java.util.List dependencyList)
Joins together the elements of a list with -> delimiters. Used to show the sequence that resulted in the circular dependency.