Package org.glassfish.hk2.api
Class UnsatisfiedDependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.hk2.api.HK2RuntimeException
-
- org.glassfish.hk2.api.UnsatisfiedDependencyException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnsatisfiedDependencyException extends HK2RuntimeException
This exception will be found in aMultiException
when a class has a dependency that should be satisfied but cannot be. The specific InjectionPoint that could not be satisfied can be found in the exception.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Injectee
injectionPoint
private static long
serialVersionUID
For serialization
-
Constructor Summary
Constructors Constructor Description UnsatisfiedDependencyException()
Use this if the injectee is unknownUnsatisfiedDependencyException(Injectee injectee)
Constructs the exception with the given injectee
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Injectee
getInjectee()
Returns the injectee that is unsatisfied
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For serialization- See Also:
- Constant Field Values
-
injectionPoint
private final transient Injectee injectionPoint
-
-
Constructor Detail
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException()
Use this if the injectee is unknown
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException(Injectee injectee)
Constructs the exception with the given injectee- Parameters:
injectee
- The injectee that is Unsatisfied, or null if the injectee is unknown
-
-
Method Detail
-
getInjectee
public Injectee getInjectee()
Returns the injectee that is unsatisfied- Returns:
- The injectee that is unsatisfied
-
-