Skip to main content

native_whisperx/config/
error.rs

1//! Error type shared by library workflow, parity, output, and speaker operations.
2
3#[derive(Debug, thiserror::Error)]
4pub enum NativeWhisperxError {
5    #[error("invalid configuration: {0}")]
6    InvalidConfig(String),
7    #[error("transcription failed: {0}")]
8    Transcription(String),
9    #[error("transcript import failed: {0}")]
10    Import(String),
11    #[error("JSON serialization failed: {0}")]
12    Json(#[from] serde_json::Error),
13    #[error("I/O failed: {0}")]
14    Io(#[from] std::io::Error),
15}