Package org.apache.kafka.common.errors
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
ConstructorDescriptionDuplicateResourceException
(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
fillInStackTrace
Methods 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
- Parameters:
message
- the exception's messagecause
- the exception's cause
-
DuplicateResourceException
Constructor- Parameters:
resource
- the (potentially null) resource that was referred to twicemessage
- the exception's message
-
DuplicateResourceException
Constructor- Parameters:
resource
- the (potentially null) resource that was referred to twicemessage
- the exception's messagecause
- the exception's cause
-
-
Method Details
-
resource
- Returns:
- the (potentially null) resource that was referred to twice
-