Type Alias wick_config::AssetError

source ·
pub type AssetError = Error;
Expand description

The crate’s error type.

Aliased Type§

enum AssetError {
    BadUrl(String),
    LoadError(PathBuf),
    PullFailed(PathBuf, String),
    NormalizationFailure(String, String),
    NotFound(PathBuf),
    Unresolvable(String),
    FileEscapesRoot(PathBuf, String),
}

Variants§

§

BadUrl(String)

Location reference was not a URL or package reference

§

LoadError(PathBuf)

Could not load file.

§

PullFailed(PathBuf, String)

Remote fetch failed.

§

NormalizationFailure(String, String)

Local path normalization failed.

§

NotFound(PathBuf)

Could not find file or directory.

§

Unresolvable(String)

Could not resolve a location to a filesystem path or an OCI reference.

§

FileEscapesRoot(PathBuf, String)

Error returned when a file path does not reside in a target directory.

Trait Implementations§

source§

impl Error for Error

1.30.0 · source§

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

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