ooxml-dml 0.1.0

DrawingML support for the ooxml library (shared by Word, Excel, PowerPoint)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error types for DrawingML parsing.

use thiserror::Error;

/// Errors that can occur when working with DrawingML content.
#[derive(Error, Debug)]
pub enum Error {
    /// XML parsing error.
    #[error("XML error: {0}")]
    Xml(#[from] quick_xml::Error),

    /// Invalid or malformed content.
    #[error("Invalid content: {0}")]
    Invalid(String),
}

/// Result type for DrawingML operations.
pub type Result<T> = std::result::Result<T, Error>;