Class InvalidOffsetException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoOffsetForPartitionException, OffsetOutOfRangeException

@Public public abstract class InvalidOffsetException extends KafkaException
Thrown when the offset for a set of partitions is invalid (either undefined or out of range), and no reset policy has been configured.
See Also:
  • Constructor Details

    • InvalidOffsetException

      public InvalidOffsetException(String message)
      Constructs a new InvalidOffsetException with the specified detail message.
      Parameters:
      message - The detail message
  • Method Details

    • partitions

      public abstract Set<TopicPartition> partitions()
      Returns the set of partitions for which the offset was invalid.
      Returns:
      The set of partitions with invalid offsets