RadionError enum with matching variants.
| Type / variant | Raised when |
|---|---|
RadionError | The base class for every SDK error (the enum itself in Rust). |
RadionConnectionError / RadionError::Connection | You used the client in a bad state (for example, no key, or used after close). |
RadionServerError / RadionError::Server | The server sent an error frame. Holds code, channel, and id. |
RadionError::Transport (Rust) | The WebSocket transport under the hood failed. |
error lifecycle event instead.
Server error codes
RadionServerError.code matches the server’s error frames. Common codes:
| Code | Meaning |
|---|---|
unknown_channel | The channel name is unknown, or a required filter is missing. |
subscription_limit | You went over your plan’s subscription limit for the connection. |
lagged | You read too slowly and fell behind the buffer, so some events were dropped. |
key_revoked | The API key was revoked, so the connection is closed. |
revalidation_failed | The key could not be checked again, so the connection is closed. |
key_revoked and revalidation_failed as fatal: call close() and stop. For normal drops, the client reconnects on its own.