Class NoOffsetForPartitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.clients.consumer.InvalidOffsetException
org.apache.kafka.clients.consumer.NoOffsetForPartitionException
- All Implemented Interfaces:
- Serializable
public class NoOffsetForPartitionException extends InvalidOffsetException
Indicates that there is no stored offset for a partition and no defined offset
 reset policy.
- See Also:
- Serialized Form
- 
Constructor SummaryConstructors Constructor Description NoOffsetForPartitionException(Collection<TopicPartition> partitions)NoOffsetForPartitionException(TopicPartition partition)
- 
Method SummaryModifier and Type Method Description Set<TopicPartition>partitions()returns all partitions for which no offests are defined.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
NoOffsetForPartitionException
- 
NoOffsetForPartitionException
 
- 
- 
Method Details- 
partitionsreturns all partitions for which no offests are defined.- Specified by:
- partitionsin class- InvalidOffsetException
- Returns:
- all partitions without offsets
 
 
-