Class RequiredDependencyException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AmbiguousRequiredDependencyException

    public abstract class RequiredDependencyException
    extends DependencyException
    Thrown when an attempt is made to register or remove a type that would cause a dependency required by another type to be ambiguous or unresolvable (either by providing a second alternative or by not providing one anymore).

    For example, when a type exists that requires a Database implementation and the only Database implementation is removed, then its requirements can no longer be met.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RequiredDependencyException​(java.lang.String message)
      Constructs a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • RequiredDependencyException

        public RequiredDependencyException​(java.lang.String message)
        Constructs a new instance.
        Parameters:
        message - a message, cannot be null