Skip to main content

rs_teststand_autodoc/
error.rs

1//! Error types for the autodoc generator.
2
3/// Errors that can occur during extraction or rendering.
4#[derive(Debug, thiserror::Error)]
5pub enum Error {
6    /// A COM operation on the TestStand™ engine failed.
7    #[error(transparent)]
8    Com(#[from] rs_teststand::Error),
9
10    /// An I/O operation failed.
11    #[error(transparent)]
12    Io(#[from] std::io::Error),
13
14    /// A regex compilation failed.
15    #[error("regex error: {0}")]
16    Regex(#[from] regex::Error),
17
18    /// A Mermaid diagram could not be rendered.
19    #[error("mermaid render error: {0}")]
20    Mermaid(String),
21}