org.apache.commons.attributes

Class CircularDependencyError


public class CircularDependencyError
extends RepositoryError

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

Field Summary

Fields inherited from class org.apache.commons.attributes.RepositoryError

nested

Constructor Summary

CircularDependencyError(String className, List dependencyList)
Create a new CircularDependencyError.

Method Summary

private static String
listDeps(List dependencyList)
Joins together the elements of a list with -> delimiters.

Methods inherited from class org.apache.commons.attributes.RepositoryError

getCause, getNested

Constructor Details

CircularDependencyError

public CircularDependencyError(String className,
                               List dependencyList)
Create a new CircularDependencyError.
Parameters:
className - the name of the class that started it all.
dependencyList - a list of the classes (java.lang.Class) 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. Note: Versions prior to 2.2 accepted a list of Objects of any type. This is still supported, but the formatting may suffer. Please only use lists of java.lang.Class.
Since:
2.1

Method Details

listDeps

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