Skip to main content

xacli_testing/
error.rs

1pub type Result<T> = std::result::Result<T, TestingError>;
2
3/// Error types for xacli-testing
4#[derive(Debug, thiserror::Error)]
5pub enum TestingError {
6    #[error("IO error: {0}")]
7    Io(#[from] std::io::Error),
8
9    #[error("Tape parse error: {0}")]
10    TapeParse(String),
11
12    #[error("HCL parse error: {0}")]
13    HclParse(String),
14
15    #[error("Argument parse error: {0}")]
16    ArgParse(String),
17
18    #[error("Execution error: {0}")]
19    Execution(String),
20
21    #[error("Assertion failed: {0}")]
22    Assertion(String),
23
24    #[error("{0}")]
25    Custom(String),
26}