#[derive(Debug, thiserror::Error)]
pub enum OcrError {
#[error("model download failed for {url}: {reason}")]
Download { url: String, reason: String },
#[error("checksum mismatch for {path}: expected {expected}, got {actual}")]
ChecksumMismatch {
path: String,
expected: String,
actual: String,
},
#[error("model load failed: {0}")]
ModelLoad(String),
#[error("inference failed: {0}")]
Inference(String),
}