Package org.int4.dirk.api.definition
Class DependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.int4.dirk.api.definition.DependencyException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AmbiguousDependencyException,CyclicDependencyException,DuplicateDependencyException,MissingDependencyException,RequiredDependencyException,ScopeConflictException,UnsatisfiedDependencyException,UnsatisfiedRequiredDependencyException
public abstract class DependencyException extends java.lang.RuntimeExceptionBase 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.For example, removing a type from an Injector which is required as a dependency of another type would make the Injector unable to supply that other type, and so an exception is thrown instead.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DependencyException(java.lang.String message)Constructs a new instance.DependencyException(java.lang.String message, java.lang.Throwable cause)Constructs a new instance.
-
-
-
Constructor Detail
-
DependencyException
public DependencyException(java.lang.String message, java.lang.Throwable cause)Constructs a new instance.- Parameters:
message- a messagecause- a cause
-
DependencyException
public DependencyException(java.lang.String message)
Constructs a new instance.- Parameters:
message- a message
-
-