#[non_exhaustive]pub enum OverridesError {
Io(Error),
Decode(Error),
FutureVersion(u32),
}Expand description
Error type returned by this module.
#[non_exhaustive]: shep-core is a published library and this enum is
reachable from it, so a further failure shape must not break an
out-of-tree consumer’s match (IR-20).
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, at the cost,
documented there too, of not deriving Clone/PartialEq/Eq (IR-19’s
exception for variants wrapping io::Error).
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()