pub enum KevyError {
Store(StoreError),
Io(Error),
Protocol(String),
ReadOnly,
InvalidInput(String),
NotFound(String),
Unsupported(String),
TimedOut,
Closed,
}Expand description
Re-exports so downstream code can name the argument/reply/error types
of the wraps without adding kevy-embedded / kevy-resp deps.
The error type of the embeddable stack: kevy_embedded::Store and
kevy_client::Connection surfaces return Result<_, KevyError>.
Structured errors stay structured — a wrong-type write arrives as
KevyError::Store(StoreError::WrongType), not as stringly io::Error
text. From<io::Error> / From<StoreError> keep ? ergonomic at
both the OS boundary and the store boundary.
Variants§
Store(StoreError)
Structured store-semantic error (wrong type, non-integer, overflow, out-of-memory, …).
Io(Error)
Operating-system / transport failure (file, socket, AOF).
Protocol(String)
RESP-level failure on a client link: a server error reply
(-ERR … text preserved verbatim) or a malformed / unexpected
reply shape.
ReadOnly
Write rejected: the target is a read-only replica.
InvalidInput(String)
Invalid argument to a typed API (bad flag combination, empty prefix, malformed URL, …). Rejected before touching any state.
NotFound(String)
A named object (index, view, required key) doesn’t exist.
Unsupported(String)
The operation isn’t available on this backend or build.
TimedOut
A bounded blocking call ran out its timeout.
Closed
The connection / in-process bus is gone (EOF).
Trait Implementations§
Source§impl Error for KevyError
impl Error for KevyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()