Enum browserslist::Error [−][src]
pub enum Error {
ParseVersion(ParseFloatError),
ParsePercentage(ParseFloatError),
ParseVersionsCount(ParseIntError),
ParseYearsCount(ParseFloatError),
InvalidDate(String),
BrowserNotFound(String),
UnknownElectronVersion(String),
UnknownNodejsVersion(String),
UnknownBrowserVersion(String, String),
UnsupportedCurrentNode,
VersionRequired(String),
UnknownQuery(String),
}
Expand description
The errors may occur when querying with browserslist.
Variants
ParseVersion(ParseFloatError)
Failed to parse version string.
Tuple Fields of ParseVersion
ParsePercentage(ParseFloatError)
Failed to parse number as percentage value.
Tuple Fields of ParsePercentage
ParseVersionsCount(ParseIntError)
Failed to parse number as versions count.
Tuple Fields of ParseVersionsCount
ParseYearsCount(ParseFloatError)
Failed to parse number as years count.
Tuple Fields of ParseYearsCount
InvalidDate(String)
Date format is invalid.
Tuple Fields of InvalidDate
0: String
BrowserNotFound(String)
The given browser name can’t be found.
Tuple Fields of BrowserNotFound
0: String
UnknownElectronVersion(String)
The given Electron version can’t be found.
Tuple Fields of UnknownElectronVersion
0: String
UnknownNodejsVersion(String)
The given Node.js version can’t be found.
Tuple Fields of UnknownNodejsVersion
0: String
The given version of the given browser can’t be found.
Current environment doesn’t support querying current node
,
for example, running this library on Non-Node.js platform or
no Node.js installed.
VersionRequired(String)
Version string is missing when querying.
Tuple Fields of VersionRequired
0: String
UnknownQuery(String)
Query can’t be recognized.
Tuple Fields of UnknownQuery
0: String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more