#[non_exhaustive]pub enum OverridesError {
Io(Error),
Decode(Error),
FutureVersion(u32),
}Expand description
Error type returned by this module.
#[non_exhaustive]: shep-core is published, so a new failure variant
must not break an out-of-tree match.
Wraps io::Error/serde_json::Error directly rather than stringifying
them, matching crate::kv::KvError, so callers keep the underlying
diagnostic through core::error::Error::source; this type does not
derive Clone/PartialEq/Eq as a result.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(Error)
The store could not be read, written, or replaced.
Decode(Error)
The store’s JSON could not be parsed.
Refused rather than repaired: this file is an operator’s live config and a partial read of it would silently drop overrides that are still on disk.
FutureVersion(u32)
The store on disk is a version this build does not understand; carries that version. Nothing was written.
Trait Implementations§
Source§impl Debug for OverridesError
impl Debug for OverridesError
Source§impl Display for OverridesError
impl Display for OverridesError
Source§impl Error for OverridesError
impl Error for OverridesError
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()