entrenar/ecosystem/batuta/error.rs
1//! Error types for Batuta integration.
2
3/// Errors that can occur when interacting with Batuta.
4#[derive(Debug, thiserror::Error)]
5pub enum BatutaError {
6 /// Batuta service is unavailable
7 #[error("Batuta service unavailable: {0}")]
8 ServiceUnavailable(String),
9
10 /// Invalid GPU type requested
11 #[error("Unknown GPU type: {0}")]
12 UnknownGpuType(String),
13
14 /// Network or connection error
15 #[error("Connection error: {0}")]
16 ConnectionError(String),
17
18 /// Response parsing error
19 #[error("Invalid response: {0}")]
20 InvalidResponse(String),
21}