Client SDKsPythonReference
Types & Errors
Shared types and exceptions — KubeMQ Python SDK reference.
Python surfaces rich dataclasses for messages and structured exceptions for transport failures.
Exception hierarchy
| Exception | Retryable | When |
|---|---|---|
KubeMQConnectionError | Yes | Network or broker unavailable |
KubeMQTimeoutError | Yes | Deadline exceeded |
KubeMQAuthenticationError | No | Invalid credentials |
KubeMQValidationError | No | Invalid parameters |
KubeMQError | Varies | Base exception |
Async variants
Use AsyncPubSubClient and async context managers when integrating with asyncio. Always thread AsyncCancellationToken instances into subscriptions so workers can shut down cleanly.
Resources
See Also
Was this page helpful?