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:
Serializable
This exception will be found in a
MultiException
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Injectee
private static final long
For serialization -
Constructor Summary
ConstructorsConstructorDescriptionUse this if the injectee is unknownUnsatisfiedDependencyException
(Injectee injectee) Constructs the exception with the given injectee -
Method Summary
Modifier and TypeMethodDescriptionReturns the injectee that is unsatisfiedMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization- See Also:
-
injectionPoint
-
-
Constructor Details
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException()Use this if the injectee is unknown -
UnsatisfiedDependencyException
Constructs the exception with the given injectee- Parameters:
injectee
- The injectee that is Unsatisfied, or null if the injectee is unknown
-
-
Method Details
-
getInjectee
Returns the injectee that is unsatisfied- Returns:
- The injectee that is unsatisfied
-