Class DuplicateResourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.common.errors.ApiException
org.apache.kafka.common.errors.DuplicateResourceException
- All Implemented Interfaces:
Serializable
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:
Constructor Summary
ConstructorsConstructorDescriptionDuplicateResourceException(String message) ConstructorDuplicateResourceException(String resource, String message) ConstructorDuplicateResourceException(String resource, String message, Throwable cause) ConstructorDuplicateResourceException(String message, Throwable cause) Method Summary
Methods inherited from class org.apache.kafka.common.errors.ApiException
fillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
DuplicateResourceException
Constructor- Parameters:
message- the exception's message
DuplicateResourceException
DuplicateResourceException
DuplicateResourceException
Method Details
resource
- Returns:
- the (potentially null) resource that was referred to twice