pulsar-client-python icon indicating copy to clipboard operation
pulsar-client-python copied to clipboard

exceptions must derive from BaseException

Open baigang666 opened this issue 2 years ago • 2 comments
trafficstars

Search before asking

  • [X] I searched in the issues and found nothing similar.

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?

  • [X] I'm willing to submit a PR!

baigang666 avatar Jun 07 '23 01:06 baigang666

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.

tisonkun avatar Jun 07 '23 05:06 tisonkun

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

BewareMyPower avatar Jun 07 '23 06:06 BewareMyPower