pub enum CliError {
Show 27 variants
Vfs(VfsError),
Io(Error),
Yaml(Error),
YamlBooleanAliasKeys {
details: String,
},
YamlBooleanAliasScan {
path: String,
message: String,
},
DuplicateDependencyNames {
path: String,
details: String,
},
Json(Error),
InvalidOverrideRoot {
path: PathBuf,
kind: &'static str,
},
InvalidFinalSchemaRoot {
kind: &'static str,
},
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),
InvalidEmissionPolicy(InvalidEmissionPolicy),
ConfigRead {
path: PathBuf,
source: Error,
},
InvalidConfig {
path: String,
source: Error,
},
UnsupportedConfigVersion {
path: PathBuf,
found: u64,
supported_min: u64,
supported_max: u64,
},
}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.
YamlBooleanAliasKeys
Values declarations use keys whose spelling Helm normalizes ambiguously.
YamlBooleanAliasScan
A values declaration could not be structurally inspected for key style.
DuplicateDependencyNames
A chart declares the same dependency name more than once.
Fields
Json(Error)
JSON input or output could not be decoded or encoded.
InvalidOverrideRoot
A caller override is not a JSON Schema document root.
Fields
InvalidFinalSchemaRoot
A final output document is not a JSON Schema root.
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.
InvalidEmissionPolicy(InvalidEmissionPolicy)
An emission selection resolves to a contradictory knob matrix.
ConfigRead
An explicit config path could not be read.
InvalidConfig
A config document is malformed or contains unknown fields.
Fields
UnsupportedConfigVersion
A config document uses a version this binary cannot honor exactly.
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()