pub enum CliError {
Show 18 variants
Vfs(VfsError),
Io(Error),
Yaml(Error),
Json(Error),
TemplateParse(ParseError),
NoChartsDiscovered,
SubchartNameMissing {
path: String,
},
NoChartYamlInArchive {
archive: String,
},
CreateOutputDir {
path: PathBuf,
source: Error,
},
WriteOutput {
path: PathBuf,
source: Error,
},
Referencing(ReferencingError),
RefBundling(String),
InvalidFileUriPath {
path: PathBuf,
},
InvalidFileUri {
uri: String,
},
LoadBudgetExceeded {
subject: String,
limit_bytes: usize,
},
LoadEntryBudgetExceeded {
subject: String,
limit_entries: usize,
},
UnsafeArchiveEntryPath {
archive: String,
entry_path: String,
},
CliValidation(String),
}Expand description
Errors produced while loading charts, analyzing templates, and emitting schemas.
Variants§
Vfs(VfsError)
Virtual-filesystem operation failed.
Io(Error)
Operating-system I/O operation failed.
Yaml(Error)
YAML input could not be decoded.
Json(Error)
JSON input or output could not be decoded or encoded.
TemplateParse(ParseError)
Helm template source could not be parsed.
NoChartsDiscovered
Chart discovery found no analyzable charts.
SubchartNameMissing
A discovered subchart path has no usable chart name.
NoChartYamlInArchive
An archive does not contain a chart manifest.
CreateOutputDir
The output directory could not be created.
WriteOutput
A generated schema could not be written.
Fields
Referencing(ReferencingError)
Wraps any failure surfaced by the jsonschema / referencing
full-inlining pass: file-not-found, JSON parse error, malformed
URI, pointer-to-nowhere, missing anchor, etc. The wrapped variant
carries the structured cause so callers can pattern-match on the
underlying problem (e.g. Unretrievable { uri, source } vs
PointerToNowhere { pointer }) rather than parsing a string.
RefBundling(String)
A self-contained schema could not be produced from external references.
InvalidFileUriPath
A local filesystem path cannot be represented as a file URI.
InvalidFileUri
A file URI cannot be represented as a local filesystem path.
LoadBudgetExceeded
One loaded document exceeded the configured byte budget.
Fields
LoadEntryBudgetExceeded
An archive or directory exceeded the configured entry budget.
Fields
UnsafeArchiveEntryPath
An archive member would escape its extraction root.
Fields
CliValidation(String)
Mutually-exclusive CLI flags or otherwise-invalid combination
detected after clap parsing succeeded.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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()