docx_rs/errors/
mod.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum DocxError {
5    #[error("FromStr error.{0}")]
6    ConvertError(String),
7    #[error("Failed to write XML to buffer.")]
8    EmitterError(#[from] xml::writer::Error),
9    #[error("Failed to zip XML documents.")]
10    ZipError(#[from] zip::result::ZipError),
11    #[error("Unknown error")]
12    Unknown,
13}