wordpieces/error.rs
1use std::io;
2
3use thiserror::Error;
4
5/// Errors that can occur while reading word pieces.
6#[derive(Debug, Error)]
7pub enum WordPiecesError {
8 /// Finite state automaton error.
9 #[error(transparent)]
10 FstError(#[from] fst::Error),
11
12 /// IO error.
13 #[error(transparent)]
14 IOError(#[from] io::Error),
15}