pub enum EsResolverError {
IOError(Error, String),
InvalidPackageJSON(Error),
InvalidTSConfig(Error),
InvalidTSConfigExtend(String),
InvalidExports(String),
InvalidModuleSpecifier(String),
ModuleNotFound(String),
}Expand description
Any errors that might occur during crate::EsResolver::resolve
Variants§
IOError(Error, String)
Fail to resolve the target because unable to load a critical file,
e.g. that crate::EsResolver::from is not a real file.
InvalidPackageJSON(Error)
Fail to read a package.json. When LOAD_PACKAGE_EXPORTS is assumpted but
the package.json is invalid, this is raised in accordance to Node’s behavior.
InvalidTSConfig(Error)
Fail to read a tsconfig.json
InvalidTSConfigExtend(String)
InvalidExports(String)
When LOAD_PACKAGE_EXPORTS, the exports field is found invalid.
See https://nodejs.org/api/packages.html#subpath-exports.
InvalidModuleSpecifier(String)
ModuleNotFound(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EsResolverError
impl !RefUnwindSafe for EsResolverError
impl Send for EsResolverError
impl Sync for EsResolverError
impl Unpin for EsResolverError
impl !UnwindSafe for EsResolverError
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