Enum node_maintainer::NassunError
source · pub enum NassunError {
Show 22 variants
MissingVersion(PackageSpec, Version),
PackageSpecError(PackageSpecError),
DirReadError(Error, PathBuf),
GitIoError(Error),
GitCloneError(String),
GitCheckoutError(String, String),
ExtractIoError(Error, Option<PathBuf>, String),
ExtractCacheError(Error, Option<PathBuf>),
CacheMissingIndexError(String),
IoError(String, Error),
OroClientError(OroClientError),
SerdeError(Error),
UrlError(ParseError),
IntegrityError(Error),
NoTarball(String, PackageSpec, Box<CorgiVersionMetadata, Global>),
NoVersion {
name: String,
spec: PackageSpec,
versions: Vec<String, Global>,
},
WhichGit(Error),
InvalidPackageSpec(PackageSpec),
UnsupportedDummyOperation(String),
DummyNoName,
SerializeCacheError(String),
MiscError(String),
}Expand description
Error type returned by all API calls.
Variants§
MissingVersion(PackageSpec, Version)
A given package exists, but the version that the specifier resolved to does not.
Check that the version or range you’re requesting actually exists and try again.
PackageSpecError(PackageSpecError)
Something went wrong while trying to parse a PackageSpec.
DirReadError(Error, PathBuf)
Failed to read a directory dependency. Refer to the error message for more details.
GitIoError(Error)
An io-related error occurred while executing git.
GitCloneError(String)
An error occurred while trying to clone a repository.
GitCheckoutError(String, String)
An error occurred while trying to checkout a repository.
ExtractIoError(Error, Option<PathBuf>, String)
Failed to extract a tarball while doing a certain IO operation. Refer to the error message for more details.
ExtractCacheError(Error, Option<PathBuf>)
Failed to extract a tarball to the cache. Refer to the error message for more details.
CacheMissingIndexError(String)
IoError(String, Error)
A generic IO error occurred. Refer tot he error message for more details.
OroClientError(OroClientError)
A generic oro-client error.
SerdeError(Error)
A generic serde error.
UrlError(ParseError)
Failed to parse a URL.
IntegrityError(Error)
Failed to parse a package integrity string.
NoTarball(String, PackageSpec, Box<CorgiVersionMetadata, Global>)
There’s no tarball specified as part of the package metadata for a given package. This is likely a bug in the registry.
NoVersion
No matching version could be found for a given specifier. Make sure that the version, range, or dist-tag you requested actually exists.
Using oro view can help.
WhichGit(Error)
Failed to find git in the user’s $PATH.
Make sure git is installed and visible from the executing shell’s $PATH.
InvalidPackageSpec(PackageSpec)
The version resolver ran into an unexpected package spec. This is almost definitely a bug.
UnsupportedDummyOperation(String)
Some unsupported operation happened while working with a dummy package. This is an internal detail and almost definitely a bug worth reporting.
DummyNoName
A dummy package was missing a name. This is an internal detail and almost definitely a bug worth reporting.
SerializeCacheError(String)
An error occurred while serializing tarball metadata to cache.
MiscError(String)
A miscellaneous, usually internal error. This is used mainly to wrap either manual InternalErrors, or those using external errors that don’t implement std::error::Error.
If you see this error, please file a bug report so that a better error can take its place.
Trait Implementations§
source§impl Debug for NassunError
impl Debug for NassunError
source§impl Diagnostic for NassunError
impl Diagnostic for NassunError
source§fn code(&self) -> Option<Box<dyn Display, Global>>
fn code(&self) -> Option<Box<dyn Display, Global>>
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.source§fn help(&self) -> Option<Box<dyn Display, Global>>
fn help(&self) -> Option<Box<dyn Display, Global>>
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandlers to change the display format
of this diagnostic. Read moresource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan>, Global>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan>, Global>>
Diagnostic’s Diagnostic::source_codesource§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic’s Diagnostic::labels to.Diagnostics.source§fn url(&self) -> Option<Box<dyn Display, Global>>
fn url(&self) -> Option<Box<dyn Display, Global>>
Diagnostic.