apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
51 stars 39 forks source link

exceptions must derive from BaseException #132

Open baigang666 opened 1 year ago

baigang666 commented 1 year ago

Search before asking

Version

3.1.0

Minimal reproduce step

def callback(self,res): self.logger.info(f"Message published,data={res}") producer = self.client.create_producer(topic, compression_type=pulsar.CompressionType.LZ4 ) producer.send_async(send_message, self.callback(one_data))

What did you expect to see?

mmm

What did you see instead?

mmmm

Anything else?

No response

Are you willing to submit a PR?

tisonkun commented 1 year ago

This seems a python client issue to improve the exception hierarchy. But @baigang666 please provide a complete sample and describe in details what you expect - let maintainers guess what you mean will delay the issue to be handled or resolved.

BewareMyPower commented 1 year ago

Could you explain what's the BaseException? Currently all exception classes derive from _pulsar.PulsarException.