1//! 错误类型定义 2 3use thiserror::Error; 4 5/// DOCX 处理错误类型 6#[derive(Error, Debug)] 7pub enum DocxError { 8 #[error("无效的 DOCX 文件格式")] 9 InvalidZipFormat, 10 #[error("{0}")] 11 TemplateRenderError(String), 12}