pub enum BridgeError {
AlpmType(Error),
NoName,
InvalidPackageName {
name: String,
error: Error,
},
UndeclaredPackageName(String),
UnusedPackageFunction(Name),
MissingRequiredKeyword {
keyword: Keyword,
},
ParseError {
keyword: Keyword,
error: String,
},
WrongVariableType {
keyword: String,
expected: String,
actual: String,
},
UnexpectedArchitecture {
keyword: Keyword,
suffix: SystemArchitecture,
},
UnclearableValue {
keyword: Keyword,
},
UnexpectedArray {
keyword: Keyword,
values: Vec<String>,
},
}Expand description
A lower-level error that may occur when converting alpm-pkgbuild-bridge script output into the
SourceInfo format.
Variants§
AlpmType(Error)
ALPM type parse error
NoName
No pkgname has been specified.
InvalidPackageName
A package name is not valid.
UndeclaredPackageName(String)
A package function has been declared for a split package, but it is not defined in
pkgname.
UnusedPackageFunction(Name)
An unused package function exists for an undeclared alpm-split-package.
MissingRequiredKeyword
A type parser fails on a certain keyword.
ParseError
A type parser fails on a certain keyword.
WrongVariableType
A variable is expected to be of a different type.
E.g. String when an Array is expected.
Fields
UnexpectedArchitecture
A keyword has an architecture suffix even though it shouldn’t have one.
Fields
suffix: SystemArchitectureThe architecture that is found for the keyword.
UnclearableValue
A keyword that cannot be cleared is attempted to be cleared.
UnexpectedArray
A keyword should have only a single value, but an array is found.
Trait Implementations§
Source§impl Debug for BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl Error for BridgeError
impl Error for BridgeError
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<'a> From<(Keyword, ParseError<&'a str, ContextError>)> for BridgeError
impl<'a> From<(Keyword, ParseError<&'a str, ContextError>)> for BridgeError
Source§fn from(value: (Keyword, ParseError<&'a str, ContextError>)) -> Self
fn from(value: (Keyword, ParseError<&'a str, ContextError>)) -> Self
Converts a tuple of (Keyword and ParseError) into a BridgeError::ParseError.