pub enum NodeMaintainerError {
Show 23 variants
UnsupportedScheme(String),
UrlParseError(String, ParseError),
SemverParseError(SemverError),
MissingVersion,
MissingResolution,
IntegrityParseError(Error),
KdlLockfileIntegrityParseError(KdlNode, Error),
KdlLockMissingName(KdlNode),
NpmLockMissingName(NpmPackageLockEntry),
NpmLockfileIntegrityParseError(NpmPackageLockEntry, Error),
NpmUnsupportedPackageLockVersion(u64),
KdlLockMissingRoot(KdlDocument),
NpmLockMissingRoot(NpmPackageLock),
KdlParseError(KdlError),
InvalidLockfileVersion,
PackageSpecError(PackageSpecError),
IoError(Error),
NassunError(NassunError),
SerdeJsonError(Error),
MiscError(String),
TrySendError,
GraphValidationError(String),
WalkDirError(Error),
}Variants§
UnsupportedScheme(String)
Unsupported resolved URL scheme
UrlParseError(String, ParseError)
Failed to parse a resolved URL while parsing lockfile
SemverParseError(SemverError)
Failed to parse a Semver string.
MissingVersion
Missing version for NPM package entry in lockfile.
MissingResolution
Missing resolution for package entry in lockfile.
IntegrityParseError(Error)
Failed to parse an integrity value.
KdlLockfileIntegrityParseError(KdlNode, Error)
Failed to parse an integrity value while loading lockfile.
KdlLockMissingName(KdlNode)
Missing package node name.
NpmLockMissingName(NpmPackageLockEntry)
Missing package node name.
NpmLockfileIntegrityParseError(NpmPackageLockEntry, Error)
Failed to parse an integrity value while loading NPM lockfile.
NpmUnsupportedPackageLockVersion(u64)
Unsupported NPM Package Lock version.
KdlLockMissingRoot(KdlDocument)
No root node in KDL lockfile.
NpmLockMissingRoot(NpmPackageLock)
No root node in NPM lockfile.
KdlParseError(KdlError)
Error parsing lockfile.
InvalidLockfileVersion
PackageSpecError(PackageSpecError)
Generic package spec error.
IoError(Error)
Generic IO Error.
NassunError(NassunError)
Generic error returned from Nassun.
SerdeJsonError(Error)
Generic serde_json error.
MiscError(String)
Generic error
TrySendError
GraphValidationError(String)
WalkDirError(Error)
Trait Implementations§
source§impl Debug for NodeMaintainerError
impl Debug for NodeMaintainerError
source§impl Diagnostic for NodeMaintainerError
impl Diagnostic for NodeMaintainerError
source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
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 + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
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> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
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 + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
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 NodeMaintainerError
impl Display for NodeMaintainerError
source§impl Error for NodeMaintainerError
impl Error for NodeMaintainerError
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 NodeMaintainerError
impl From<Error> for NodeMaintainerError
source§impl From<Error> for NodeMaintainerError
impl From<Error> for NodeMaintainerError
source§impl From<Error> for NodeMaintainerError
impl From<Error> for NodeMaintainerError
source§impl From<Error> for NodeMaintainerError
impl From<Error> for NodeMaintainerError
source§impl From<KdlError> for NodeMaintainerError
impl From<KdlError> for NodeMaintainerError
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<PackageSpecError> for NodeMaintainerError
impl From<PackageSpecError> for NodeMaintainerError
source§fn from(source: PackageSpecError) -> Self
fn from(source: PackageSpecError) -> Self
Converts to this type from the input type.
source§impl From<SemverError> for NodeMaintainerError
impl From<SemverError> for NodeMaintainerError
source§fn from(source: SemverError) -> Self
fn from(source: SemverError) -> Self
Converts to this type from the input type.