Enum node_maintainer::NassunError
source · pub enum NassunError {
Show 20 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>),
IoError(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,
MiscError(String),
}Expand description
Error type returned by all API calls.
Variants§
MissingVersion(PackageSpec, Version)
Something went wrong while fetching a package.
PackageSpecError(PackageSpecError)
Something went wrong while trying to parse a PackageArg
DirReadError(Error, PathBuf)
GitIoError(Error)
GitCloneError(String)
GitCheckoutError(String, String)
ExtractIoError(Error, Option<PathBuf>, String)
ExtractCacheError(Error, Option<PathBuf>)
IoError(Error)
OroClientError(OroClientError)
SerdeError(Error)
UrlError(ParseError)
IntegrityError(Error)
NoTarball(String, PackageSpec, Box<CorgiVersionMetadata, Global>)
NoVersion
WhichGit(Error)
InvalidPackageSpec(PackageSpec)
UnsupportedDummyOperation(String)
DummyNoName
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.
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>>
Unique diagnostic code that can be used to look up more information
about this
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>>
Additional help text related to this
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>
Diagnostic severity. This may be used by
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>>
Labels to apply to this
Diagnostic’s Diagnostic::source_codesource§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic’s Diagnostic::labels to.Additional related
Diagnostics.source§fn url(&self) -> Option<Box<dyn Display, Global>>
fn url(&self) -> Option<Box<dyn Display, Global>>
URL to visit for a more detailed explanation/help about this
Diagnostic.source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
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)>
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()
source§impl From<Error> for NassunError
impl From<Error> for NassunError
source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Converts to this type from the input type.
source§impl From<Error> for NassunError
impl From<Error> for NassunError
source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Converts to this type from the input type.
source§impl From<Error> for NassunError
impl From<Error> for NassunError
source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Converts to this type from the input type.
source§impl From<Error> for NassunError
impl From<Error> for NassunError
source§fn from(source: Error) -> NassunError
fn from(source: Error) -> NassunError
Converts to this type from the input type.
source§impl From<NassunError> for NodeMaintainerError
impl From<NassunError> for NodeMaintainerError
source§fn from(source: NassunError) -> Self
fn from(source: NassunError) -> Self
Converts to this type from the input type.
source§impl From<OroClientError> for NassunError
impl From<OroClientError> for NassunError
source§fn from(source: OroClientError) -> NassunError
fn from(source: OroClientError) -> NassunError
Converts to this type from the input type.
source§impl From<PackageSpecError> for NassunError
impl From<PackageSpecError> for NassunError
source§fn from(source: PackageSpecError) -> NassunError
fn from(source: PackageSpecError) -> NassunError
Converts to this type from the input type.
source§impl From<ParseError> for NassunError
impl From<ParseError> for NassunError
source§fn from(source: ParseError) -> NassunError
fn from(source: ParseError) -> NassunError
Converts to this type from the input type.