#[non_exhaustive]pub enum Error {
Show 16 variants
InvalidLink(String),
NoParser(String),
NoBackend(String),
TaskNotFound(String),
InvalidState(String),
Verification {
expected: String,
actual: String,
},
ChecksumMissing,
Extraction(String),
Cancelled,
Backend(String),
Config(String),
Io(Error),
Json(Error),
Toml(String),
Url(ParseError),
Other(String),
}Expand description
Errors produced by the core engine, store, finalizers and backends.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidLink(String)
The supplied link is malformed or empty.
NoParser(String)
No registered parser accepted the link.
NoBackend(String)
No registered backend supports the resolved resource.
TaskNotFound(String)
No task with the given identifier exists in the store.
InvalidState(String)
The task is not in a state that allows the requested operation.
Verification
A downloaded file did not match the expected checksum.
Fields
ChecksumMissing
Verification was required but no checksum is available.
Extraction(String)
Archive extraction failed.
Cancelled
The task was cancelled.
Backend(String)
The backend reported an error.
Config(String)
The configuration is invalid or inconsistent.
Io(Error)
An I/O operation failed.
Json(Error)
JSON serialization or deserialization failed.
Toml(String)
TOML serialization or deserialization failed.
Url(ParseError)
A URL could not be parsed.
Other(String)
An error that does not fit any other category.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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
use the Display impl or to_string()