Skip to main content

CliError

Enum CliError 

Source
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.

Fields

§path: String

Path of the unnamed subchart.

§

NoChartYamlInArchive

An archive does not contain a chart manifest.

Fields

§archive: String

Path or identifier of the archive.

§

CreateOutputDir

The output directory could not be created.

Fields

§path: PathBuf

Directory creation target.

§source: Error

Underlying filesystem failure.

§

WriteOutput

A generated schema could not be written.

Fields

§path: PathBuf

Output file that could not be written.

§source: Error

Underlying filesystem failure.

§

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.

Fields

§path: PathBuf

Filesystem path that could not be encoded.

§

InvalidFileUri

A file URI cannot be represented as a local filesystem path.

Fields

§uri: String

File URI that could not be decoded.

§

LoadBudgetExceeded

One loaded document exceeded the configured byte budget.

Fields

§subject: String

Document or archive member being loaded.

§limit_bytes: usize

Maximum permitted byte count.

§

LoadEntryBudgetExceeded

An archive or directory exceeded the configured entry budget.

Fields

§subject: String

Archive or directory being enumerated.

§limit_entries: usize

Maximum permitted entry count.

§

UnsafeArchiveEntryPath

An archive member would escape its extraction root.

Fields

§archive: String

Archive containing the unsafe member.

§entry_path: String

Untrusted member path rejected by validation.

§

CliValidation(String)

Mutually-exclusive CLI flags or otherwise-invalid combination detected after clap parsing succeeded.

Trait Implementations§

Source§

impl Debug for CliError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CliError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for CliError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for CliError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for CliError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for CliError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for CliError

Source§

fn from(source: ReferencingError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for CliError

Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<VfsError> for CliError

Source§

fn from(source: VfsError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more