graphql_operation_server_harness/error.rs
1use thiserror::Error;
2
3/// Errors that can occur during harness execution
4#[derive(Error, Debug)]
5pub enum HarnessError {
6 #[error("Server error: {0}")]
7 ServerError(String),
8
9 #[error("Configuration error: {0}")]
10 ConfigurationError(String),
11
12 #[error("IO error: {0}")]
13 IoError(#[from] std::io::Error),
14
15 #[error("Parse error: {0}")]
16 ParseError(String),
17}