Skip to main content

teaql_tool_core/
lib.rs

1use thiserror::Error;
2
3/// A unified error type for all TeaQL Tool operations.
4#[derive(Debug, Error)]
5pub enum TeaQLToolError {
6    #[error("Parse Error: {0}")]
7    ParseError(String),
8
9    #[error("Invalid Argument: {0}")]
10    InvalidArgument(String),
11
12    #[error("Execution Error: {0}")]
13    ExecutionError(String),
14
15    #[error("Not Supported: {0}")]
16    NotSupported(String),
17}
18
19/// A standard result type alias used throughout the TeaQL Tool ecosystem.
20pub type Result<T> = std::result::Result<T, TeaQLToolError>;