pub enum ErrorCode {
Show 35 variants
FileNotFound = 1_001,
FilePermissionDenied = 1_002,
FileCorrupted = 1_003,
FileInvalidFormat = 1_004,
IoError = 1_100,
ZipError = 1_101,
XmlParseError = 2_001,
JsonParseError = 2_002,
EncodingError = 2_003,
MissingElement = 2_004,
InvalidAttribute = 2_005,
UnsupportedVersion = 2_006,
InvalidNamespace = 2_007,
XlsxWorksheetNotFound = 3_001,
XlsxInvalidCellReference = 3_002,
XlsxInvalidFormula = 3_003,
XlsxInvalidStyleId = 3_004,
XlsxSharedStringIndexOutOfRange = 3_005,
DocxStyleNotFound = 4_001,
DocxInvalidTableStructure = 4_002,
DocxInvalidParagraphFormat = 4_003,
DocxBookmarkNotFound = 4_004,
PptxSlideNotFound = 5_001,
PptxLayoutNotFound = 5_002,
PptxInvalidShapeId = 5_003,
PptxInvalidAnimation = 5_004,
FormatError = 9_001,
UnsupportedFormat = 9_002,
StructureError = 9_003,
OtherError = 9_999,
FileError = 1_000,
ParseError = 2_000,
XlsxError = 3_000,
DocxError = 4_000,
PptxError = 5_000,
}Expand description
错误码,便于程序化处理
Variants§
FileNotFound = 1_001
FilePermissionDenied = 1_002
FileCorrupted = 1_003
FileInvalidFormat = 1_004
IoError = 1_100
ZipError = 1_101
XmlParseError = 2_001
JsonParseError = 2_002
EncodingError = 2_003
MissingElement = 2_004
InvalidAttribute = 2_005
UnsupportedVersion = 2_006
InvalidNamespace = 2_007
XlsxWorksheetNotFound = 3_001
XlsxInvalidCellReference = 3_002
XlsxInvalidFormula = 3_003
XlsxInvalidStyleId = 3_004
DocxStyleNotFound = 4_001
DocxInvalidTableStructure = 4_002
DocxInvalidParagraphFormat = 4_003
DocxBookmarkNotFound = 4_004
PptxSlideNotFound = 5_001
PptxLayoutNotFound = 5_002
PptxInvalidShapeId = 5_003
PptxInvalidAnimation = 5_004
FormatError = 9_001
UnsupportedFormat = 9_002
StructureError = 9_003
OtherError = 9_999
FileError = 1_000
ParseError = 2_000
XlsxError = 3_000
DocxError = 4_000
PptxError = 5_000
Trait Implementations§
impl Copy for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.