use thiserror::Error;
#[derive(Debug, Error)]
pub enum VnNlpError {
#[error("Invalid UTF-8 input at byte offset {offset}")]
InvalidUtf8 {
offset: usize,
},
#[error("Dictionary not found: {path}")]
DictionaryNotFound {
path: String,
},
#[error("Input too large: {size} bytes (max: {max})")]
InputTooLarge {
size: usize,
max: usize,
},
#[error(transparent)]
Io(#[from] std::io::Error),
}