ada

git clone git://archive.git.mtrnord.blog/MTRNord/ada.git
Log | Files | Refs

errors.rs (424B)


      1 use thiserror::Error;
      2 
      3 #[derive(Error, Debug)]
      4 pub enum ConfigError {
      5     /// Represents all cases of `serde_yaml::Error`.
      6     #[error(transparent)]
      7     SerdeError(#[from] serde_yaml::Error),
      8 
      9     /// Represents all other cases of `std::io::Error`.
     10     #[error(transparent)]
     11     IOError(#[from] std::io::Error),
     12 }
     13 
     14 #[derive(Error, Debug)]
     15 pub enum SpeechError {
     16     #[error("Model couldn't be loaded")]
     17     ModelNotFound,
     18 }