pub enum PrompterError {
}Expand description
All errors that can occur during prompter configuration loading, profile resolution, rendering, and scaffolding.
Each variant names a distinct failure mode a caller might branch on.
Variants that carry a bare String do so only for human-facing context
(a library/serializer message, a clap usage string) that callers merely
display rather than match on.
Variants§
Io
An I/O operation failed, annotated with the path it concerned.
Fields
Write(Error)
A write to an output sink failed.
HomeNotSet
The home directory could not be located ($HOME unset).
WorkingDir(Error)
The current working directory could not be resolved.
NoParentDir(PathBuf)
A config file path lacked a parent directory.
InvalidToml(Error)
The TOML in a config file was syntactically invalid.
ConfigField(String)
A reserved top-level config field had the wrong type or shape.
DuplicateProfile(String)
A profile name was defined more than once across the merged bundle.
ImportCycle(PathBuf)
An import chain referred back to a config file already being loaded.
Resolve(ResolveError)
A profile dependency could not be resolved.
Validation(String)
Validation found one or more problems; the message aggregates them.
Json(Error)
A value could not be serialized to JSON.
ArgParse(String)
Command-line arguments could not be parsed; the payload is clap’s formatted usage/error text, shown to the user verbatim.
Trait Implementations§
Source§impl Debug for PrompterError
impl Debug for PrompterError
Source§impl Display for PrompterError
impl Display for PrompterError
Source§impl Error for PrompterError
impl Error for PrompterError
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()