errors.go 987 B

123456789101112131415161718
  1. package kafka
  2. import "errors"
  3. // OutOfBrokers is the error returned when the client has run out of brokers to talk to because all of them errored
  4. // or otherwise failed to respond.
  5. var OutOfBrokers = errors.New("kafka: Client has run out of available brokers to talk to. Is your cluster reachable?")
  6. // NoSuchTopic is the error returned when the supplied topic is rejected by the Kafka servers.
  7. var NoSuchTopic = errors.New("kafka: Topic not recognized by brokers.")
  8. // IncompleteResponse is the error returned when the server returns a syntactically valid response, but it does
  9. // not contain the expected information.
  10. var IncompleteResponse = errors.New("kafka: Response did not contain all the expected topic/partition blocks.")
  11. // InvalidPartition is the error returned when a partitioner returns an invalid partition index
  12. // (meaning one outside of the range [0...numPartitions-1]).
  13. var InvalidPartition = errors.New("kafka: Partitioner returned an invalid partition index.")