pub struct PackageTargetNotFoundError {
pub pkg_json_path: PathBuf,
pub target: String,
pub maybe_referrer: Option<UrlOrPath>,
pub resolution_mode: ResolutionMode,
pub resolution_kind: NodeResolutionKind,
}Fields§
§pkg_json_path: PathBuf§target: String§maybe_referrer: Option<UrlOrPath>§resolution_mode: ResolutionMode§resolution_kind: NodeResolutionKindTrait Implementations§
Source§impl Debug for PackageTargetNotFoundError
impl Debug for PackageTargetNotFoundError
Source§impl Display for PackageTargetNotFoundError
impl Display for PackageTargetNotFoundError
Source§impl Error for PackageTargetNotFoundError
impl Error for PackageTargetNotFoundError
1.30.0 · 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<PackageTargetNotFoundError> for PackageTargetResolveErrorKind
impl From<PackageTargetNotFoundError> for PackageTargetResolveErrorKind
Source§fn from(source: PackageTargetNotFoundError) -> Self
fn from(source: PackageTargetNotFoundError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for PackageTargetNotFoundError
impl JsErrorClass for PackageTargetNotFoundError
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,
) -> Vec<(Cow<'static, str>, Cow<'static, str>)>
fn get_additional_properties( &self, ) -> Vec<(Cow<'static, str>, Cow<'static, str>)>
Additional properties that should be defined on the error in JavaScript side.
fn as_any(&self) -> &dyn Any
Source§impl NodeJsErrorCoded for PackageTargetNotFoundError
impl NodeJsErrorCoded for PackageTargetNotFoundError
fn code(&self) -> NodeJsErrorCode
Auto Trait Implementations§
impl Freeze for PackageTargetNotFoundError
impl RefUnwindSafe for PackageTargetNotFoundError
impl Send for PackageTargetNotFoundError
impl Sync for PackageTargetNotFoundError
impl Unpin for PackageTargetNotFoundError
impl UnwindSafe for PackageTargetNotFoundError
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