pub enum NodeMaintainerError {
Show 26 variants
UnsupportedScheme(String),
UrlParseError(String, ParseError),
SemverParseError(SemverError),
MissingVersion,
MissingResolution,
IntegrityParseError(Error),
KdlLockfileIntegrityParseError(KdlNode, Error),
KdlLockMissingName(KdlNode),
NpmLockMissingName(Box<NpmPackageLockEntry>),
NpmLockfileIntegrityParseError(Box<NpmPackageLockEntry>, Error),
NpmUnsupportedPackageLockVersion(u64),
KdlLockMissingRoot(KdlDocument),
NpmLockMissingRoot(NpmPackageLock),
KdlParseError(KdlError),
InvalidLockfileVersion,
PackageSpecError(PackageSpecError),
IoError(String, Error),
NassunError(NassunError),
SerdeJsonError(Error),
MiscError(String),
TrySendError,
GraphValidationError(String),
WalkDirError(Error),
BuildManifestReadError(PathBuf, Error),
OroScriptError(OroScriptError),
LockfileMismatch,
}
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(Box<NpmPackageLockEntry>)
Missing package node name.
NpmLockfileIntegrityParseError(Box<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(String, Error)
Generic IO Error.
NassunError(NassunError)
Generic error returned from Nassun.
SerdeJsonError(Error)
Generic serde_json error.
MiscError(String)
Generic error. Refer to the error message for more details.
TrySendError
Failed to send data through mpsc channel. This is likely an internal error of some sort.
GraphValidationError(String)
Failed to validate a graph. Refer to the error message for more details.
WalkDirError(Error)
Got an error while walking node_modules
. Refer to the error message
for specific details.
BuildManifestReadError(PathBuf, Error)
Failed to read package.json
during the build step. Refer to the
error message for more details.
OroScriptError(OroScriptError)
Some error occurred while running a script. Refer to the error message for more details.
LockfileMismatch
Locked file was requested, but a new dependency tree was resolved that
would cause changes to the lockfile. The contents of package.json
may have changed since the last time the lockfile was updated.
This typically happens when a dependency is added or removed from package.json while locked mode is enabled. If you have an existing lockfile and get this error without any modifications to package.json, please report this as a bug.
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 + '_>>
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 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
Source§impl From<OroScriptError> for NodeMaintainerError
impl From<OroScriptError> for NodeMaintainerError
Source§fn from(source: OroScriptError) -> Self
fn from(source: OroScriptError) -> Self
Source§impl From<PackageSpecError> for NodeMaintainerError
impl From<PackageSpecError> for NodeMaintainerError
Source§fn from(source: PackageSpecError) -> Self
fn from(source: PackageSpecError) -> Self
Source§impl From<SemverError> for NodeMaintainerError
impl From<SemverError> for NodeMaintainerError
Source§fn from(source: SemverError) -> Self
fn from(source: SemverError) -> Self
Source§impl<T> From<TrySendError<T>> for NodeMaintainerError
impl<T> From<TrySendError<T>> for NodeMaintainerError
Source§fn from(_: TrySendError<T>) -> Self
fn from(_: TrySendError<T>) -> Self
Auto Trait Implementations§
impl Freeze for NodeMaintainerError
impl !RefUnwindSafe for NodeMaintainerError
impl Send for NodeMaintainerError
impl Sync for NodeMaintainerError
impl Unpin for NodeMaintainerError
impl !UnwindSafe for NodeMaintainerError
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