Skip to main content

victauri_test/
error.rs

1#[derive(Debug, thiserror::Error)]
2#[non_exhaustive]
3pub enum TestError {
4    #[error("connection failed: {0}")]
5    Connection(String),
6
7    #[error("MCP request failed: {0}")]
8    Request(#[from] reqwest::Error),
9
10    #[error("MCP returned error: {message}")]
11    Mcp { code: i64, message: String },
12
13    #[error("tool call failed: {0}")]
14    ToolError(String),
15
16    #[error("assertion failed: {0}")]
17    Assertion(String),
18
19    #[error("timeout waiting for condition")]
20    Timeout,
21}