Class UnsatisfiedDependencyException

All Implemented Interfaces:
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.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization
      See Also:
    • injectionPoint

      private final transient Injectee injectionPoint
  • Constructor Details

    • 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 Details

    • getInjectee

      public Injectee getInjectee()
      Returns the injectee that is unsatisfied
      Returns:
      The injectee that is unsatisfied