pub enum BackendError {
Parse(String),
Io(Error),
Font(String),
Interpreter(String),
Core(PdfError),
}Expand description
Error type for PDF parsing backend operations.
Wraps backend-specific errors and provides conversion to PdfError
for unified error handling across the library.
Variants§
Parse(String)
Error from PDF parsing (structure, syntax, object resolution).
Io(Error)
Error reading PDF data.
Font(String)
Error resolving font or encoding information.
Interpreter(String)
Error during content stream interpretation.
Core(PdfError)
A core library error.
Trait Implementations§
Source§impl Debug for BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BackendError> for PdfError
impl From<BackendError> for PdfError
Source§fn from(err: BackendError) -> Self
fn from(err: BackendError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BackendError
impl From<Error> for BackendError
Auto Trait Implementations§
impl Freeze for BackendError
impl !RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl UnsafeUnpin for BackendError
impl !UnwindSafe for BackendError
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