pub enum Error {
Opc(Error),
Xml(Error),
Drawing(Error),
Chart(Error),
MissingDrawingPart(String),
MissingDrawingRelationship(String),
MissingDrawingReferencedPart(String),
MissingWorkbook,
InvalidUtf8(String, Utf8Error),
MissingSheetRelationship(String),
MissingWorksheetPart(String),
}Expand description
Errors that can occur while reading or writing a .xlsx workbook.
Variants§
Opc(Error)
An error occurred at the OPC package level (ZIP container, parts, relationships).
Xml(Error)
An error occurred while reading or writing XML.
Drawing(Error)
An error occurred while reading or writing a shape’s DrawingML content (fill/line/text/image reference) inside a sheet’s drawing.
Chart(Error)
An error occurred while reading or writing an embedded chart’s content.
MissingDrawingPart(String)
A sheet’s drawing part (xl/drawings/drawingN.xml) is referenced by
the worksheet but missing from the package.
MissingDrawingRelationship(String)
A drawing anchor references an image or chart relationship id that
has no matching entry in the drawing part’s own .rels.
MissingDrawingReferencedPart(String)
A drawing anchor’s image/chart relationship resolved to a part name that isn’t actually present in the package.
MissingWorkbook
The package has no relationship of type
.../relationships/officeDocument, so xl/workbook.xml could not
be located.
InvalidUtf8(String, Utf8Error)
A part’s content is not valid UTF-8.
MissingSheetRelationship(String)
xl/workbook.xml declares a <sheet> whose relationship id
(r:id) has no matching entry in xl/_rels/workbook.xml.rels.
MissingWorksheetPart(String)
A sheet’s relationship resolved to a part name that isn’t actually present in the package.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()