Class DuplicateResourceException

  • All Implemented Interfaces:
    Serializable

    public class DuplicateResourceException
    extends ApiException
    Exception thrown due to a request that illegally refers to the same resource twice (for example, trying to both create and delete the same SCRAM credential for a particular user in a single request).
    See Also:
    Serialized Form
    • Constructor Detail

      • DuplicateResourceException

        public DuplicateResourceException​(String message)
        Constructor
        Parameters:
        message - the exception's message
      • DuplicateResourceException

        public DuplicateResourceException​(String message,
                                          Throwable cause)
        Parameters:
        message - the exception's message
        cause - the exception's cause
      • DuplicateResourceException

        public DuplicateResourceException​(String resource,
                                          String message)
        Constructor
        Parameters:
        resource - the (potentially null) resource that was referred to twice
        message - the exception's message
      • DuplicateResourceException

        public DuplicateResourceException​(String resource,
                                          String message,
                                          Throwable cause)
        Constructor
        Parameters:
        resource - the (potentially null) resource that was referred to twice
        message - the exception's message
        cause - the exception's cause
    • Method Detail

      • resource

        public String resource()
        Returns:
        the (potentially null) resource that was referred to twice