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
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<Error> for Error
impl PartialEq<Error> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more