#[non_exhaustive]pub enum Error {
Open(String),
Read(String),
FloorRefusal {
feature: String,
reason: String,
},
ResourceLimit {
what: String,
ceiling: String,
},
Ir(Error),
InvalidOptions(String),
}Expand description
Everything the Git decoder can fail with. A refused source feature is a typed outcome
(Error::FloorRefusal), not a panic and not an approximation (FA-3).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Open(String)
The path is not a readable Git repository.
Read(String)
An object could not be read or decoded (a malformed or unreadable repository).
FloorRefusal
A source feature below the floor was hit; it is refused with a named reason (RFC 004 D-4, FA-3).
Fields
ResourceLimit
A resource ceiling was hit (a malformed or hostile repository); refused rather than exhausting
the host (RFC 010, brygge-03 T-8/C-2d).
Fields
Ir(Error)
The assembled IR violated a brygge-ir invariant (signals a decoder bug, not bad input).
InvalidOptions(String)
An Options field was given a value that cannot mean anything — refused before the repository
is even opened, rather than silently matching nothing (review 147/148, carry_extra_namespaces).
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()