pub enum NassunError {
Show 23 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>),
NoVersion {
name: String,
spec: PackageSpec,
versions: Vec<String>,
},
WhichGit(Error),
InvalidPackageSpec(PackageSpec),
UnsupportedDummyOperation(String),
DummyNoName,
SerializeCacheError(String),
DeserializeCacheError(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>)
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.
DeserializeCacheError(String)
An error happened while deserializing cache metadata.
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 + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
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 + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
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>
ReportHandler
s to change the display format
of this diagnostic. Read moreSource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic
’s Diagnostic::source_code
Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic
’s Diagnostic::labels
to.Diagnostic
s.Source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Display for NassunError
impl Display for NassunError
Source§impl Error for NassunError
impl Error for NassunError
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
Source§impl From<Error> for NassunError
impl From<Error> for NassunError
Source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Source§impl From<Error> for NassunError
impl From<Error> for NassunError
Source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Source§impl From<Error> for NassunError
impl From<Error> for NassunError
Source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Source§impl From<NassunError> for NodeMaintainerError
impl From<NassunError> for NodeMaintainerError
Source§fn from(source: NassunError) -> Self
fn from(source: NassunError) -> Self
Source§impl From<OroClientError> for NassunError
impl From<OroClientError> for NassunError
Source§fn from(source: OroClientError) -> NassunError
fn from(source: OroClientError) -> NassunError
Source§impl From<PackageSpecError> for NassunError
impl From<PackageSpecError> for NassunError
Source§fn from(source: PackageSpecError) -> NassunError
fn from(source: PackageSpecError) -> NassunError
Source§impl From<ParseError> for NassunError
impl From<ParseError> for NassunError
Source§fn from(source: ParseError) -> NassunError
fn from(source: ParseError) -> NassunError
Auto Trait Implementations§
impl Freeze for NassunError
impl !RefUnwindSafe for NassunError
impl Send for NassunError
impl Sync for NassunError
impl Unpin for NassunError
impl !UnwindSafe for NassunError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more