Enum browserslist::Error
source · pub enum Error {
Show 17 variants
Nom(String),
InvalidDate(String),
NotAtFirst(String),
BrowserNotFound(String),
UnknownElectronVersion(String),
UnknownNodejsVersion(String),
UnknownBrowserVersion(String, String),
UnsupportedCurrentNode,
UnknownBrowserFeature(String),
UnknownRegion(String),
UnknownQuery(String),
DuplicatedSection(String),
FailedToReadConfig(String),
MissingFieldInPkg(String),
DuplicatedConfig(String, &'static str, &'static str),
FailedToAccessCurrentDir,
MissingEnv(String),
}
Expand description
The errors may occur when querying with browserslist.
Variants§
Nom(String)
Error of parsing query.
InvalidDate(String)
Date format is invalid.
NotAtFirst(String)
Query can’t start with a negated query which starts with not
.
BrowserNotFound(String)
The given browser name can’t be found.
UnknownElectronVersion(String)
The given Electron version can’t be found.
UnknownNodejsVersion(String)
The given Node.js version can’t be found.
UnknownBrowserVersion(String, String)
The given version of the given browser can’t be found.
UnsupportedCurrentNode
Current environment doesn’t support querying current node
,
for example, running this library on Non-Node.js platform or
no Node.js installed.
UnknownBrowserFeature(String)
Unknown browser feature.
UnknownRegion(String)
Unknown Can I Use region.
UnknownQuery(String)
Query can’t be recognized.
DuplicatedSection(String)
Duplicated section in configuration.
FailedToReadConfig(String)
Failed to read config.
MissingFieldInPkg(String)
Missing browserslist
field in package.json
file.
DuplicatedConfig(String, &'static str, &'static str)
Duplicated configuration found.
FailedToAccessCurrentDir
Failed to access the current working directory.
MissingEnv(String)
Missing config corresponding to specific environment.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.