io.github.amayaframework.di.CycleFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amaya-di Show documentation
Show all versions of amaya-di Show documentation
A framework responsible for monitoring and automating the dependency injection process.
package io.github.amayaframework.di;
import java.util.Collections;
import java.util.List;
/**
* Thrown to indicate that a cycle has been found in the dependency graph.
*/
public class CycleFoundException extends RuntimeException {
private final List cycle;
/**
* Constructs an {@link CycleFoundException} with the found cycle.
*
* @param cycle the found cycle
*/
public CycleFoundException(List cycle) {
super("A cycle has been found in the dependency graph");
this.cycle = Collections.unmodifiableList(cycle);
}
/**
* Returns {@link List}, containing found cycle.
*
* @return unmodifiable {@link List}, containing found cycle
*/
public List getCycle() {
return cycle;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy