use thiserror::Error;
#[derive(Error, Debug, Clone, PartialEq, Eq)]
pub enum BytePairEncoderError {
#[error("Error reading file: {0}")]
InvalidFile(String),
#[error("Invalid vocabulary input: Could not parse vocabulary file.")]
InvalidVocabularyInput,
#[error("Error decompressing vocabulary data: {0}")]
DecompressionError(String),
#[error("Error deserializing vocabulary data: {0}")]
DeserializationError(String),
#[error("Error, must enable defualt-small, default-medium, and/or default-large feature(s) to use default vocabulary.")]
NoDefaultVocabFeature,
}