#[non_exhaustive]pub enum Error {
NoObject(u64),
TooDeep(u32),
XrefBroken,
NoCatalog,
Unresolved(ObjRef),
Cycle(ObjRef),
NoPage(PageIndex),
Limit(LimitExceeded),
}Expand description
A failure below the document level: a token that is not an object, a cross-reference section that cannot be read, a fetch that finds nothing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoObject(u64)
The bytes at this position are not the start of any object.
TooDeep(u32)
Objects nested deeper than the configured limit.
XrefBroken
No cross-reference information could be read or reconstructed.
NoCatalog
The trailer named no catalog, or the object it named is not one.
Unresolved(ObjRef)
A reference names an object the cross-reference table has no entry for, has marked free, or whose body would not parse.
Cycle(ObjRef)
This fetch re-entered one already in progress.
NoPage(PageIndex)
A page index past the document’s page count, or one whose tree walk found nothing.
Limit(LimitExceeded)
The caller’s Limits::deadline passed while the cross-reference was
being rebuilt by scanning the file.
Trait Implementations§
impl Eq for Error
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()