KafkaError

The base class of the exceptions kafka-python raises when a Kafka operation fails.

In more detail

Catching KafkaError catches every client error, and printing the exception's class name tells you which specific one occurred, such as NotEnoughReplicasError. Specific errors carry a flag that says whether retrying might succeed.

Related terms

Taught in

References

Certification courses