Package org.apache.kafka.common.errors
Class UnknownTopicOrPartitionException
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.RetriableException
org.apache.kafka.common.errors.InvalidMetadataException
org.apache.kafka.common.errors.UnknownTopicOrPartitionException
- All Implemented Interfaces:
Serializable
public class UnknownTopicOrPartitionException extends InvalidMetadataException
This topic/partition doesn't exist.
This exception is used in contexts where a topic doesn't seem to exist based on possibly stale metadata.
This exception is retriable because the topic or partition might subsequently be created.
- See Also:
InvalidTopicException
, Serialized Form
-
Constructor Summary
Constructors Constructor Description UnknownTopicOrPartitionException()
UnknownTopicOrPartitionException(String message)
UnknownTopicOrPartitionException(String message, Throwable throwable)
UnknownTopicOrPartitionException(Throwable throwable)
-
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
-
UnknownTopicOrPartitionException
public UnknownTopicOrPartitionException() -
UnknownTopicOrPartitionException
-
UnknownTopicOrPartitionException
-
UnknownTopicOrPartitionException
-