pub enum ErrorCode {
InvalidPdf,
CorruptPdf,
PasswordProtected,
PageLimitExceeded,
FileTooLarge,
OcrRequired,
UnsupportedPdfFeature,
ParseTimeout,
MemoryLimitExceeded,
InternalError,
}Expand description
The 10 stable error codes. Wire format is snake_case.
Variants§
InvalidPdf
Not a PDF / unparseable header.
CorruptPdf
Structurally corrupt PDF.
PasswordProtected
Encrypted/password-protected input.
PageLimitExceeded
Page count exceeds the configured limit.
FileTooLarge
File size exceeds the configured limit.
OcrRequired
No extractable text — OCR would be required (out of Release 1 base).
UnsupportedPdfFeature
PDF feature outside the supported profile.
ParseTimeout
Wall-time limit exceeded.
MemoryLimitExceeded
Memory budget exceeded.
InternalError
Any internal failure (incl. ID-width overflow, c14n errors at runtime).
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more