hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
824 stars 153 forks source link

Clarify & Improve Exception Handling & Behaviour in Callbacks #624

Open pglombardo opened 4 months ago

pglombardo commented 4 months ago

🚀 Feature Request

In issues #553, #575 & #566, the exception policy for this client isn't clear and causes some user confusion.

The policy should be stated clearly. Either we don't allow exceptions in callbacks or we do allow them and then handle them in a very specific way.

Additionally we should consider allowing exceptions in callbacks with a well-defined behaviour to propagate those exceptions.

🔈 Motivation

🛰 Alternatives

📎 Additional context