Enum wick_package::Error
source · pub enum Error {
Directory(PathBuf),
InvalidWickConfig(String),
InvalidFileLocation(String),
PackageReadFailed(String),
ReadFile(PathBuf, Error),
NoName,
Config(Error),
Oci(Error),
AssetReference(AssetError),
InvalidJson(&'static str, Error),
}Expand description
This crate’s primary Error type.
Variants§
Directory(PathBuf)
Tried to specify a directory instead of a configuration file.
InvalidWickConfig(String)
Tried to specify a file that is not a component or app file.
InvalidFileLocation(String)
Tried to add a resource file that is not in the same directory (or relative subdirectory) as the component or application file.
PackageReadFailed(String)
Failed to read downloaded package
ReadFile(PathBuf, Error)
Error returned when reading a file
NoName
Tried to publish a component that didn’t have a name
Config(Error)
General Configuration error
Oci(Error)
Errors related to OCI push/pull
AssetReference(AssetError)
General asset error
InvalidJson(&'static str, Error)
Could not parse contents as JSON
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()