pub enum Error {
Format {
what: &'static str,
offset: usize,
detail: String,
},
Io {
path: PathBuf,
source: Error,
},
Cas(Error),
Missing(String),
Unsupported(String),
}Expand description
What went wrong reading or writing a format: the format and offset that broke, a file that could not be opened, a CAS block that would not decode, or an entry of a kind no reader here reads.
Variants§
Format
Bytes that do not hold to the format: what was being read, the offset (within the bytes being read) where it went wrong, and what was expected.
Fields
Io
A file or folder that could not be read.
Cas(Error)
A CAS block that would not decode (or an Oodle library that was needed and not given).
Missing(String)
Something a lookup needed and the data does not hold (a bundle, a chunk, an archive), named.
Unsupported(String)
An entry of a kind or form no reader here reads, named.
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()
Source§impl From<BoundsError> for Error
A read past a document’s bytes through primase_foundations::bytes::Cursor (the EBX decoder’s): its error at the read’s
offset.
impl From<BoundsError> for Error
A read past a document’s bytes through primase_foundations::bytes::Cursor (the EBX decoder’s): its error at the read’s
offset.