Class CyclicDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
build.codemodel.dependency.injection.InjectionException
build.codemodel.dependency.injection.CyclicDependencyException
- All Implemented Interfaces:
Serializable
Thrown when a cyclic dependency has been detected between
Classes.- Since:
- Jun-2018
- Author:
- brian.oliver
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCyclicDependencyException(Dependency dependency) CyclicDependencyException(Dependency detectedInDependency, Dependency causedByDependency) Constructs aCyclicDependencyException.CyclicDependencyException(List<Dependency> cyclePath) Constructs aCyclicDependencyExceptionwith the full cycle path discovered by static graph analysis (e.g. fromContext.validate()). -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CyclicDependencyException
- Parameters:
dependency- theDependency
-
CyclicDependencyException
Constructs aCyclicDependencyException.- Parameters:
detectedInDependency- theDependencyon which the cycle was detectedcausedByDependency- theDependencythat causes the cycle
-
CyclicDependencyException
Constructs aCyclicDependencyExceptionwith the full cycle path discovered by static graph analysis (e.g. fromContext.validate()). The path starts and ends with the sameDependency(e.g.[A, B, C, A]).- Parameters:
cyclePath- the full cycle path including the repeated start/end node
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-