Enum onenote_parser::errors::ErrorKind
source · pub enum ErrorKind {
Show 13 variants
UnexpectedEof,
NotATocFile {
file: String,
},
NotASectionFile {
file: String,
},
TocFileMissing {
dir: String,
},
MalformedData(Cow<'static, str>),
MalformedOneNoteData(Cow<'static, str>),
MalformedOneNoteFileData(Cow<'static, str>),
MalformedOneStoreData(Cow<'static, str>),
MalformedFssHttpBData(Cow<'static, str>),
InvalidUuid {
err: Error,
},
IO {
err: Error,
},
Utf16Error {
err: FromUtf16Error,
},
Utf16MissingNull {
err: MissingNulError<u16>,
},
}
Expand description
Details about a parsing error
Variants
UnexpectedEof
Hit the end of the OneNote file before it was expected.
NotATocFile
Fields
file: String
The parser was asked to process a table-of-contents file that turned out not to be one.
NotASectionFile
Fields
file: String
The parser was asked to process a section file that turned out not to be one.
TocFileMissing
Fields
dir: String
When parsing a section group the table-of-contents file for this group was found to be missing.
MalformedData(Cow<'static, str>)
Malformed data was encountered when parsing the OneNote file.
MalformedOneNoteData(Cow<'static, str>)
Malformed data was encountered when parsing the OneNote data.
MalformedOneNoteFileData(Cow<'static, str>)
Malformed data was encountered when parsing the OneNote file contents.
MalformedOneStoreData(Cow<'static, str>)
Malformed data was encountered when parsing the OneStore data.
MalformedFssHttpBData(Cow<'static, str>)
Malformed data was encountered when parsing the FSSHTTPB data.
InvalidUuid
Fields
err: Error
A malformed UUID was encountered
IO
Fields
err: Error
An I/O failure was encountered during parsing.
Utf16Error
Fields
err: FromUtf16Error
A malformed UTF-16 string was encountered during parsing.
Utf16MissingNull
Fields
err: MissingNulError<u16>
A UTF-16 string without a null terminator was encountered during parsing.