pub enum NodeResolveErrorKind {
RelativeJoin(NodeResolveRelativeJoinError),
PathToUrl(PathToUrlError),
UrlToFilePath(UrlToFilePathError),
PackageImportsResolve(PackageImportsResolveError),
UnsupportedEsmUrlScheme(UnsupportedEsmUrlSchemeError),
DataUrlReferrer(DataUrlReferrerError),
PackageResolve(PackageResolveError),
TypesNotFound(TypesNotFoundError),
UnknownBuiltInNodeModule(UnknownBuiltInNodeModuleError),
FinalizeResolution(FinalizeResolutionError),
}Variants§
RelativeJoin(NodeResolveRelativeJoinError)
PathToUrl(PathToUrlError)
UrlToFilePath(UrlToFilePathError)
PackageImportsResolve(PackageImportsResolveError)
UnsupportedEsmUrlScheme(UnsupportedEsmUrlSchemeError)
DataUrlReferrer(DataUrlReferrerError)
PackageResolve(PackageResolveError)
TypesNotFound(TypesNotFoundError)
UnknownBuiltInNodeModule(UnknownBuiltInNodeModuleError)
FinalizeResolution(FinalizeResolutionError)
Implementations§
Source§impl NodeResolveErrorKind
impl NodeResolveErrorKind
pub fn into_box(self) -> NodeResolveError
Source§impl NodeResolveErrorKind
impl NodeResolveErrorKind
pub fn as_types_not_found(&self) -> Option<&TypesNotFoundError>
pub fn maybe_code(&self) -> Option<NodeJsErrorCode>
Trait Implementations§
Source§impl Debug for NodeResolveErrorKind
impl Debug for NodeResolveErrorKind
Source§impl Display for NodeResolveErrorKind
impl Display for NodeResolveErrorKind
Source§impl Error for NodeResolveErrorKind
impl Error for NodeResolveErrorKind
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<DataUrlReferrerError> for NodeResolveErrorKind
impl From<DataUrlReferrerError> for NodeResolveErrorKind
Source§fn from(source: DataUrlReferrerError) -> Self
fn from(source: DataUrlReferrerError) -> Self
Converts to this type from the input type.
Source§impl From<FinalizeResolutionError> for NodeResolveErrorKind
impl From<FinalizeResolutionError> for NodeResolveErrorKind
Source§fn from(source: FinalizeResolutionError) -> Self
fn from(source: FinalizeResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<NodeResolveRelativeJoinError> for NodeResolveErrorKind
impl From<NodeResolveRelativeJoinError> for NodeResolveErrorKind
Source§fn from(source: NodeResolveRelativeJoinError) -> Self
fn from(source: NodeResolveRelativeJoinError) -> Self
Converts to this type from the input type.
Source§impl From<PackageImportsResolveError> for NodeResolveErrorKind
impl From<PackageImportsResolveError> for NodeResolveErrorKind
Source§fn from(source: PackageImportsResolveError) -> Self
fn from(source: PackageImportsResolveError) -> Self
Converts to this type from the input type.
Source§impl From<PackageResolveError> for NodeResolveErrorKind
impl From<PackageResolveError> for NodeResolveErrorKind
Source§fn from(source: PackageResolveError) -> Self
fn from(source: PackageResolveError) -> Self
Converts to this type from the input type.
Source§impl From<PathToUrlError> for NodeResolveErrorKind
impl From<PathToUrlError> for NodeResolveErrorKind
Source§fn from(source: PathToUrlError) -> Self
fn from(source: PathToUrlError) -> Self
Converts to this type from the input type.
Source§impl From<TypesNotFoundError> for NodeResolveErrorKind
impl From<TypesNotFoundError> for NodeResolveErrorKind
Source§fn from(source: TypesNotFoundError) -> Self
fn from(source: TypesNotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<UnknownBuiltInNodeModuleError> for NodeResolveErrorKind
impl From<UnknownBuiltInNodeModuleError> for NodeResolveErrorKind
Source§fn from(source: UnknownBuiltInNodeModuleError) -> Self
fn from(source: UnknownBuiltInNodeModuleError) -> Self
Converts to this type from the input type.
Source§impl From<UnsupportedEsmUrlSchemeError> for NodeResolveErrorKind
impl From<UnsupportedEsmUrlSchemeError> for NodeResolveErrorKind
Source§fn from(source: UnsupportedEsmUrlSchemeError) -> Self
fn from(source: UnsupportedEsmUrlSchemeError) -> Self
Converts to this type from the input type.
Source§impl From<UrlToFilePathError> for NodeResolveErrorKind
impl From<UrlToFilePathError> for NodeResolveErrorKind
Source§fn from(source: UrlToFilePathError) -> Self
fn from(source: UrlToFilePathError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for NodeResolveErrorKind
impl JsErrorClass for NodeResolveErrorKind
Source§fn get_message(&self) -> Cow<'static, str>
fn get_message(&self) -> Cow<'static, str>
Represents the error message used in JavaScript side.
Source§fn get_additional_properties(&self) -> AdditionalProperties
fn get_additional_properties(&self) -> AdditionalProperties
Additional properties that should be defined on the error in JavaScript side.
fn get_ref(&self) -> &(dyn Error + Send + Sync + 'static)
Auto Trait Implementations§
impl Freeze for NodeResolveErrorKind
impl !RefUnwindSafe for NodeResolveErrorKind
impl Send for NodeResolveErrorKind
impl Sync for NodeResolveErrorKind
impl Unpin for NodeResolveErrorKind
impl !UnwindSafe for NodeResolveErrorKind
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