pub struct ModuleNotFoundError {
pub specifier: UrlOrPath,
pub maybe_referrer: Option<UrlOrPath>,
pub suggested_ext: Option<&'static str>,
}Fields§
§specifier: UrlOrPath§maybe_referrer: Option<UrlOrPath>§suggested_ext: Option<&'static str>Trait Implementations§
Source§impl Debug for ModuleNotFoundError
impl Debug for ModuleNotFoundError
Source§impl Display for ModuleNotFoundError
impl Display for ModuleNotFoundError
Source§impl Error for ModuleNotFoundError
impl Error for ModuleNotFoundError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ModuleNotFoundError> for FinalizeResolutionErrorKind
impl From<ModuleNotFoundError> for FinalizeResolutionErrorKind
Source§fn from(source: ModuleNotFoundError) -> Self
fn from(source: ModuleNotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleNotFoundError> for LegacyResolveErrorKind
impl From<ModuleNotFoundError> for LegacyResolveErrorKind
Source§fn from(source: ModuleNotFoundError) -> Self
fn from(source: ModuleNotFoundError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for ModuleNotFoundError
impl JsErrorClass for ModuleNotFoundError
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)
Source§impl NodeJsErrorCoded for ModuleNotFoundError
impl NodeJsErrorCoded for ModuleNotFoundError
fn code(&self) -> NodeJsErrorCode
Auto Trait Implementations§
impl Freeze for ModuleNotFoundError
impl RefUnwindSafe for ModuleNotFoundError
impl Send for ModuleNotFoundError
impl Sync for ModuleNotFoundError
impl Unpin for ModuleNotFoundError
impl UnwindSafe for ModuleNotFoundError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more