pub enum OperationError {
PageIndexOutOfBounds(usize, usize),
InvalidPageRange(String),
NoPagesToProcess,
ResourceConflict(String),
InvalidRotation(i32),
ParseError(String),
Io(Error),
PdfError(PdfError),
ProcessingError(String),
}Expand description
Operation-specific errors
Variants§
PageIndexOutOfBounds(usize, usize)
Page index out of bounds
InvalidPageRange(String)
Invalid page range
NoPagesToProcess
No pages to process
ResourceConflict(String)
Resource conflict during merge
InvalidRotation(i32)
Invalid rotation angle
ParseError(String)
Parse error
Io(Error)
IO error
PdfError(PdfError)
Core PDF error
ProcessingError(String)
General processing error
Trait Implementations§
Source§impl Debug for OperationError
impl Debug for OperationError
Source§impl Display for OperationError
impl Display for OperationError
Source§impl Error for OperationError
impl Error for OperationError
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<Error> for OperationError
impl From<Error> for OperationError
Auto Trait Implementations§
impl Freeze for OperationError
impl !RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl !UnwindSafe for OperationError
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