org.glassfish.hk2.api
Class UnsatisfiedDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.glassfish.hk2.api.HK2RuntimeException
                  extended by org.glassfish.hk2.api.UnsatisfiedDependencyException
All Implemented Interfaces:
java.io.Serializable

public class UnsatisfiedDependencyException
extends HK2RuntimeException

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.

Author:
jwells
See Also:
Serialized Form

Constructor Summary
UnsatisfiedDependencyException()
          Use this if the injectee is unknown
UnsatisfiedDependencyException(Injectee injectee)
          Constructs the exception with the given injectee
 
Method Summary
 Injectee getInjectee()
          Returns the injectee that is unsatisfied
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


Copyright © 2012 Oracle Corporation. All Rights Reserved.