Class DuplicateServiceException

All Implemented Interfaces:
Serializable

public class DuplicateServiceException extends HK2RuntimeException
This exception is thrown when an idempotent filter of a DynamicConfiguration object matches an existing descriptor in the ServiceLocator
See Also:
  • Field Details

  • Constructor Details

    • DuplicateServiceException

      public DuplicateServiceException()
      For serialization
    • DuplicateServiceException

      public DuplicateServiceException(Descriptor existingDescriptor)
      Called by the system to initialize the existing descriptor that matched
      Parameters:
      existingDescriptor - The possibly null existing descriptor that matched one of the idempotent filters
  • Method Details

    • getExistingDescriptor

      public Descriptor getExistingDescriptor()
      Gets the descriptor that matched one of the idempotent filters
      Returns:
      The descriptor that matched one of the idempotent filters or null if the matching descriptor is unknown
    • toString

      public String toString()
      Overrides:
      toString in class Throwable