entrenar/ecosystem/realizar/error.rs
1//! GGUF export error types.
2
3/// Errors that can occur during GGUF export.
4#[derive(Debug, thiserror::Error)]
5pub enum GgufExportError {
6 /// Invalid quantization configuration
7 #[error("Invalid quantization: {0}")]
8 InvalidQuantization(String),
9
10 /// Model data validation failed
11 #[error("Model validation failed: {0}")]
12 ValidationFailed(String),
13
14 /// I/O error during export
15 #[error("Export I/O error: {0}")]
16 IoError(String),
17
18 /// Unsupported model architecture
19 #[error("Unsupported architecture: {0}")]
20 UnsupportedArchitecture(String),
21
22 /// Metadata serialization error
23 #[error("Metadata error: {0}")]
24 MetadataError(String),
25}