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:
java.io.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(java.lang.String message)
UnknownTopicOrPartitionException(java.lang.String message, java.lang.Throwable throwable)
UnknownTopicOrPartitionException(java.lang.Throwable throwable)
-
Method Summary
-
Methods inherited from class org.apache.kafka.common.errors.ApiException
fillInStackTrace
-
-
-
-
Constructor Detail
-
UnknownTopicOrPartitionException
public UnknownTopicOrPartitionException()
-
UnknownTopicOrPartitionException
public UnknownTopicOrPartitionException(java.lang.String message)
-
UnknownTopicOrPartitionException
public UnknownTopicOrPartitionException(java.lang.Throwable throwable)
-
UnknownTopicOrPartitionException
public UnknownTopicOrPartitionException(java.lang.String message, java.lang.Throwable throwable)
-
-