ooxml_dml/error.rs
1//! Error types for DrawingML parsing.
2
3use thiserror::Error;
4
5/// Errors that can occur when working with DrawingML content.
6#[derive(Error, Debug)]
7pub enum Error {
8 /// XML parsing error.
9 #[error("XML error: {0}")]
10 Xml(#[from] quick_xml::Error),
11
12 /// Invalid or malformed content.
13 #[error("Invalid content: {0}")]
14 Invalid(String),
15}
16
17/// Result type for DrawingML operations.
18pub type Result<T> = std::result::Result<T, Error>;