Enum browserslist::Error [−][src]
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)
Tuple Fields
0: StringError of parsing query.
InvalidDate(String)
Tuple Fields
0: StringDate format is invalid.
NotAtFirst(String)
Tuple Fields
0: StringQuery can’t start with a negated query which starts with not.
BrowserNotFound(String)
Tuple Fields
0: StringThe given browser name can’t be found.
UnknownElectronVersion(String)
Tuple Fields
0: StringThe given Electron version can’t be found.
UnknownNodejsVersion(String)
Tuple Fields
0: StringThe 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)
Tuple Fields
0: StringUnknown browser feature.
UnknownRegion(String)
Tuple Fields
0: StringUnknown Can I Use region.
UnknownQuery(String)
Tuple Fields
0: StringQuery can’t be recognized.
DuplicatedSection(String)
Tuple Fields
0: StringDuplicated section in configuration.
FailedToReadConfig(String)
Tuple Fields
0: StringFailed to read config.
MissingFieldInPkg(String)
Tuple Fields
0: StringMissing 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)
Tuple Fields
0: StringMissing config corresponding to specific environment.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
