pub enum DnxError {
Show 22 variants
Network(String),
Registry(String),
Resolution(String),
Integrity(String),
InvalidIntegrity(String),
Io(String),
StdIo(Error),
Json(Error),
ParseError(String),
Toml(String),
Cache(String),
Linker(String),
Lockfile(String),
PackageNotFound(String),
VersionNotFound {
package: String,
version: String,
},
Config(String),
Workspace(String),
Catalog(String),
Patch(String),
Publish(String),
Hook(String),
ProcessLock(String),
}Expand description
Main error type for Dnx operations
Variants§
Network(String)
Network-related errors
Registry(String)
Registry-related errors
Resolution(String)
Dependency resolution errors
Integrity(String)
Package integrity errors
InvalidIntegrity(String)
Invalid integrity hash format
Io(String)
I/O errors (string message)
StdIo(Error)
Std I/O errors (auto-converted)
Json(Error)
JSON parsing errors (auto-converted)
ParseError(String)
Parse errors
Toml(String)
TOML parsing errors
Cache(String)
Cache-related errors
Linker(String)
Linker-related errors
Lockfile(String)
Lockfile-related errors
PackageNotFound(String)
Package not found error
VersionNotFound
Version not found error
Config(String)
Configuration errors
Workspace(String)
Workspace-related errors
Catalog(String)
Catalog-related errors
Patch(String)
Patch-related errors
Publish(String)
Publish-related errors
Hook(String)
Hook-related errors (.pnpmfile.cjs)
ProcessLock(String)
Another dnx process is already running
Trait Implementations§
Source§impl Error for DnxError
impl Error for DnxError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for DnxError
impl !RefUnwindSafe for DnxError
impl Send for DnxError
impl Sync for DnxError
impl Unpin for DnxError
impl UnsafeUnpin for DnxError
impl !UnwindSafe for DnxError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.