pub enum NpmError {
NoLockFile(&'static [&'static str]),
ReadLockFile(PathBuf, Error),
ParseLockFile(PathBuf, Error),
Mkdir2(PathBuf, UtilError),
NoParent(PathBuf),
UrlParse(String, ParseError),
HttpGet(Url, PathBuf, UtilError),
}Expand description
Errors from the NpmGet action.
Variants§
NoLockFile(&'static [&'static str])
No lock file.
ReadLockFile(PathBuf, Error)
Can’t read package lock file.
ParseLockFile(PathBuf, Error)
Can’t parse package lock file.
Mkdir2(PathBuf, UtilError)
Failed to create the artifacts directory for npm packages.
NoParent(PathBuf)
Can’t determine parent of file.
UrlParse(String, ParseError)
Parse URL.
HttpGet(Url, PathBuf, UtilError)
Download file
Trait Implementations§
Source§impl Error for NpmError
impl Error for NpmError
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()
Source§impl From<NpmError> for ActionError
impl From<NpmError> for ActionError
Auto Trait Implementations§
impl Freeze for NpmError
impl !RefUnwindSafe for NpmError
impl Send for NpmError
impl Sync for NpmError
impl Unpin for NpmError
impl UnsafeUnpin for NpmError
impl !UnwindSafe for NpmError
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> 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.