Package org.int4.dirk.api.definition
Defines exceptions that an injector may throw while adding and removing candidates.
-
Exception Summary Exception Description AmbiguousDependencyException Thrown when there are multiple candidates for a dependency where only one is expected.AmbiguousRequiredDependencyException Thrown when an attempt is made to register a type that would cause a dependency required by another type to become ambiguous.AutoDiscoveryException Thrown when auto discovery is allowed and the types discovered have definition problems or fail to register as a coherent whole.CyclicDependencyException Thrown when a type or a group of types which are being registered has a dependency which directly or indirectly refers to the type containing the dependency, otherwise known as a cyclical dependency.DefinitionException Thrown during registration of types or instances when the type is incorrectly annotated, cannot be constructed or cannot be injected.DependencyException Base exception which signals when an Injector would no longer be able to supply all dependencies for all types it manages if the current action would be executed.DuplicateDependencyException Thrown when attempting to add a dependency which was already added to the store.MissingDependencyException Thrown when a dependency is not present in the store.RequiredDependencyException Thrown when an attempt is made to register or remove a type that would cause a dependency required by another type to be ambiguous or unresolvable (either by providing a second alternative or by not providing one anymore).ScopeConflictException Thrown during registration when a type is determined to dependent on a normal scoped type of a different scope than the type being registered, and the injector is not able or configured to resolve the problem itself (for example, by using a proxy).UnsatisfiedDependencyException Thrown when not all dependencies can be resolved.UnsatisfiedRequiredDependencyException Thrown when an attempt is made to remove a type that would cause a dependency required by another type to become unresolvable.