pub enum DenoResolveErrorKind {
InvalidVendorFolderImport,
UnsupportedPackageJsonFileSpecifier,
UnsupportedPackageJsonJsrReq,
MappedResolution(MappedResolutionError),
Node(NodeResolveError),
NodeModulesOutOfDate(NodeModulesOutOfDateError),
PackageJsonDepValueParse(PackageJsonDepValueParseError),
PackageJsonDepValueUrlParse(ParseError),
PathToUrl(PathToUrlError),
ResolveNpmReqRef(ResolveNpmReqRefError),
ResolvePkgFolderFromDenoReq(ResolvePkgFolderFromDenoReqError),
WorkspaceResolvePkgJsonFolder(WorkspaceResolvePkgJsonFolderError),
}
Variants§
InvalidVendorFolderImport
UnsupportedPackageJsonFileSpecifier
UnsupportedPackageJsonJsrReq
MappedResolution(MappedResolutionError)
Node(NodeResolveError)
NodeModulesOutOfDate(NodeModulesOutOfDateError)
PackageJsonDepValueParse(PackageJsonDepValueParseError)
PackageJsonDepValueUrlParse(ParseError)
PathToUrl(PathToUrlError)
ResolveNpmReqRef(ResolveNpmReqRefError)
ResolvePkgFolderFromDenoReq(ResolvePkgFolderFromDenoReqError)
WorkspaceResolvePkgJsonFolder(WorkspaceResolvePkgJsonFolderError)
Implementations§
Source§impl DenoResolveErrorKind
impl DenoResolveErrorKind
pub fn into_box(self) -> DenoResolveError
Source§impl DenoResolveErrorKind
impl DenoResolveErrorKind
pub fn maybe_node_code(&self) -> Option<NodeJsErrorCode>
Trait Implementations§
Source§impl Debug for DenoResolveErrorKind
impl Debug for DenoResolveErrorKind
Source§impl Display for DenoResolveErrorKind
impl Display for DenoResolveErrorKind
Source§impl Error for DenoResolveErrorKind
impl Error for DenoResolveErrorKind
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<MappedResolutionError> for DenoResolveErrorKind
impl From<MappedResolutionError> for DenoResolveErrorKind
Source§fn from(source: MappedResolutionError) -> Self
fn from(source: MappedResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<NodeModulesOutOfDateError> for DenoResolveErrorKind
impl From<NodeModulesOutOfDateError> for DenoResolveErrorKind
Source§fn from(source: NodeModulesOutOfDateError) -> Self
fn from(source: NodeModulesOutOfDateError) -> Self
Converts to this type from the input type.
Source§impl From<NodeResolveError> for DenoResolveErrorKind
impl From<NodeResolveError> for DenoResolveErrorKind
Source§fn from(source: NodeResolveError) -> Self
fn from(source: NodeResolveError) -> Self
Converts to this type from the input type.
Source§impl From<PackageJsonDepValueParseError> for DenoResolveErrorKind
impl From<PackageJsonDepValueParseError> for DenoResolveErrorKind
Source§fn from(source: PackageJsonDepValueParseError) -> Self
fn from(source: PackageJsonDepValueParseError) -> Self
Converts to this type from the input type.
Source§impl From<PathToUrlError> for DenoResolveErrorKind
impl From<PathToUrlError> for DenoResolveErrorKind
Source§fn from(source: PathToUrlError) -> Self
fn from(source: PathToUrlError) -> Self
Converts to this type from the input type.
Source§impl From<ResolveNpmReqRefError> for DenoResolveErrorKind
impl From<ResolveNpmReqRefError> for DenoResolveErrorKind
Source§fn from(source: ResolveNpmReqRefError) -> Self
fn from(source: ResolveNpmReqRefError) -> Self
Converts to this type from the input type.
Source§impl From<ResolvePkgFolderFromDenoReqError> for DenoResolveErrorKind
impl From<ResolvePkgFolderFromDenoReqError> for DenoResolveErrorKind
Source§fn from(source: ResolvePkgFolderFromDenoReqError) -> Self
fn from(source: ResolvePkgFolderFromDenoReqError) -> Self
Converts to this type from the input type.
Source§impl From<WorkspaceResolvePkgJsonFolderError> for DenoResolveErrorKind
impl From<WorkspaceResolvePkgJsonFolderError> for DenoResolveErrorKind
Source§fn from(source: WorkspaceResolvePkgJsonFolderError) -> Self
fn from(source: WorkspaceResolvePkgJsonFolderError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for DenoResolveErrorKind
impl JsErrorClass for DenoResolveErrorKind
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 DenoResolveErrorKind
impl !RefUnwindSafe for DenoResolveErrorKind
impl Send for DenoResolveErrorKind
impl Sync for DenoResolveErrorKind
impl Unpin for DenoResolveErrorKind
impl !UnwindSafe for DenoResolveErrorKind
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