#[non_exhaustive]pub enum Error {
AlpmType(Error),
Io(&'static str, Error),
IoPath(PathBuf, &'static str, Error),
InvalidUTF8(FromUtf8Error),
MissingKeyword {
keyword: &'static str,
},
NoInputFile,
ParseError(String),
Json(Error),
UnsupportedSchemaVersion(String),
BridgeError(Error),
BridgeConversionError(BridgeError),
}
Expand description
The high-level error that can occur when using this crate.
Notably, it contains an important enum in the context of parsing:
ParseError
is an already formatted error generated by thewinnow
parser. This effectively means that some invalid data has been encountered
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlpmType(Error)
ALPM type error
Io(&'static str, Error)
IO error
IoPath(PathBuf, &'static str, Error)
IO error with additional path info for more context.
InvalidUTF8(FromUtf8Error)
UTF-8 parse error when reading the input file.
MissingKeyword
A section or keyword is missing for a SRCINFO schema version.
NoInputFile
No input file given.
This error only occurs when running the crate::commands
functions.
ParseError(String)
A parsing error that occurred during winnow file parsing.
Json(Error)
JSON error while creating JSON formatted output.
This error only occurs when running the crate::commands
functions.
UnsupportedSchemaVersion(String)
Unsupported schema version
BridgeError(Error)
A alpm-pkgbuild bridge error that occurred when converting a PKGBUILD to a SourceInfoV1
struct.
See PkgbuildError
for further details.
BridgeConversionError(BridgeError)
A logical error occurred when transforming alpm-pkgbuild-bridge
script output to a
SourceInfoV1
struct.
See BridgeError
for further details.