Expand description
Errors surfaced by the config crate.
See apimock_routing::error for the rationale on per-crate error
types. ConfigError wraps RoutingError via #[from] so rule-set
load failures flow through without the caller pattern-matching on
origin.
§5.1.0 additions
WorkspaceError— surfaced byWorkspace::load.ApplyError— surfaced byWorkspace::apply.SaveError— surfaced byWorkspace::save.
Each of the three “operation” errors wraps ConfigError via
#[from] because the underlying cause of most workspace failures
is a plain config load / write problem.
Enums§
- Apply
Error - Failure during
Workspace::apply. - Config
Error - Save
Error - Failure during
Workspace::save. - Workspace
Error - Failure during
Workspace::load. Currently a thin wrapper aroundConfigError— kept as its own type so theWorkspaceAPI signals intent at the type level and has room to grow (e.g. “path is not a directory”, “no root config found”).