Skip to content

Commit

Permalink
Improve NotSubscribedException message (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
aartigao authored Mar 4, 2024
1 parent 833ddec commit 5747be6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import org.apache.kafka.common.KafkaException

/**
* [[NotSubscribedException]] indicates that a `Stream` was started in [[KafkaConsumer]] even
* though the consumer had not been subscribed to any topics before starting.
* though the consumer had not been subscribed to any topics or assigned any partitions before
* starting.
*/
sealed abstract class NotSubscribedException
extends KafkaException("consumer is not subscribed to any topics")
extends KafkaException("consumer is not subscribed to any topics or assigned any partitions")

private[kafka] object NotSubscribedException {

Expand Down

0 comments on commit 5747be6

Please sign in to comment.