Enum browserslist::Error [−][src]
pub enum Error {
Show 18 variants
ParseVersion(ParseFloatError),
ParsePercentage(ParseFloatError),
ParseVersionsCount(ParseIntError),
ParseYearsCount(ParseFloatError),
InvalidDate(String),
BrowserNotFound(String),
UnknownElectronVersion(String),
UnknownNodejsVersion(String),
UnknownBrowserVersion(String, String),
UnsupportedCurrentNode,
UnknownBrowserFeature(String),
VersionRequired(String),
UnknownQuery(String),
DuplicatedSection(String),
FailedToReadConfig(String),
MissingFieldInPkg(String),
DuplicatedConfig(String, &'static str, &'static str),
FailedToAccessCurrentDir,
}
Expand description
The errors may occur when querying with browserslist.
Variants
ParseVersion(ParseFloatError)
Tuple Fields
Failed to parse version string.
ParsePercentage(ParseFloatError)
Tuple Fields
Failed to parse number as percentage value.
ParseVersionsCount(ParseIntError)
Tuple Fields
Failed to parse number as versions count.
ParseYearsCount(ParseFloatError)
Tuple Fields
Failed to parse number as years count.
InvalidDate(String)
Tuple Fields
0: String
Date format is invalid.
BrowserNotFound(String)
Tuple Fields
0: String
The given browser name can’t be found.
UnknownElectronVersion(String)
Tuple Fields
0: String
The given Electron version can’t be found.
UnknownNodejsVersion(String)
Tuple Fields
0: 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)
Tuple Fields
0: String
Unknown browser feature.
VersionRequired(String)
Tuple Fields
0: String
Version string is missing when querying.
UnknownQuery(String)
Tuple Fields
0: String
Query can’t be recognized.
DuplicatedSection(String)
Tuple Fields
0: String
Duplicated section in configuration.
FailedToReadConfig(String)
Tuple Fields
0: String
Failed to read config.
MissingFieldInPkg(String)
Tuple Fields
0: 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more