Expand description
Error types for the replication engine.
This module defines the error types used throughout the replication engine. Errors are categorized by their source (Redis, SQLite, etc.) and include context to help with debugging.
§Error Categories
| Error Type | Retryable | Description |
|---|---|---|
Redis | Yes | Network errors, timeouts, connection failures |
PeerConnection | Yes | Peer unreachable, connection dropped |
SyncEngine | Yes | Sync engine temporarily unavailable |
CursorStore | No | Local SQLite errors (needs operator attention) |
Config | No | Configuration invalid |
Decompression | No | Data corruption (zstd decode failed) |
StreamParse | No | Malformed CDC event |
InvalidState | No | Engine state machine violation |
Shutdown | No | Engine is shutting down |
Internal | No | Unexpected internal error |
§Retry Behavior
Use ReplicationError::is_retryable() to determine if an operation
should be retried with backoff. Retryable errors indicate transient
network or availability issues. Non-retryable errors indicate bugs,
configuration problems, or data corruption.
Enums§
- Replication
Error - Errors that can occur during replication.
Type Aliases§
- Result
- Result type alias for replication operations.