docx_review_core/
error.rs1#[derive(Debug, thiserror::Error)]
2pub enum Error {
3 #[error("zip error: {0}")]
4 Zip(#[from] zip::result::ZipError),
5 #[error("xml error: {0}")]
6 Xml(#[from] quick_xml::Error),
7 #[error("xml escape error: {0}")]
8 XmlEscape(#[from] quick_xml::escape::EscapeError),
9 #[error("missing required part: {0}")]
10 MissingPart(String),
11 #[error("unsupported document feature: {0}")]
12 Unsupported(&'static str),
13 #[error("io error: {0}")]
14 Io(#[from] std::io::Error),
15}