#[non_exhaustive]pub enum SheetsDiffError {
OpenWorkbook {
side: Side,
source: SourceDescription,
kind: OpenErrorKind,
inner: Option<Box<CalamiLineError>>,
},
ReadSheet {
side: Side,
sheet: SheetRef,
kind: ReadErrorKind,
inner: Option<Box<CalamiLineError>>,
},
UnsupportedFormat {
side: Side,
detail: String,
},
EncryptedWorkbook {
side: Side,
},
InvalidOptions {
detail: String,
},
Cancelled,
LimitExceeded {
limit: LimitKind,
observed: u64,
},
Internal {
detail: String,
},
}Expand description
Fatal error returned by every v2 entry point.
The calamine source error is preserved behind std::error::Error::source()
— it never appears in any public variant type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OpenWorkbook
A workbook could not be opened or parsed.
ReadSheet
A specific sheet inside an opened workbook could not be read.
UnsupportedFormat
The bytes/reader are a valid ZIP but not a recognised xlsx workbook.
EncryptedWorkbook
The workbook is password-protected (calamine XlsxError::Password).
InvalidOptions
A DiffOptions combination is invalid; detected before any I/O.
Cancelled
The caller’s cancellation predicate returned true.
LimitExceeded
A configured Limits bound was reached.
Internal
An internal programming error; indicates a bug in sheets-diff.
Trait Implementations§
Source§impl Debug for SheetsDiffError
impl Debug for SheetsDiffError
Source§impl Display for SheetsDiffError
impl Display for SheetsDiffError
Source§impl Error for SheetsDiffError
impl Error for SheetsDiffError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SheetsDiffError
impl !UnwindSafe for SheetsDiffError
impl Freeze for SheetsDiffError
impl Send for SheetsDiffError
impl Sync for SheetsDiffError
impl Unpin for SheetsDiffError
impl UnsafeUnpin for SheetsDiffError
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