aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
blob: 04541a5bac649961e42df0d8e26afa278f8c3c0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use std::result::Result as StdResult;

use fluent::FluentResource;

pub type Result<T> = StdResult<T, Error>;

pub enum Error {
   IoError(String)
}

impl From<std::io::Error> for Error {
   fn from(value: std::io::Error) -> Self {
      todo!()
   }
}

impl From<(FluentResource, Vec<fluent_syntax::parser::ParserError>)> for Error {
   fn from(value: (FluentResource, Vec<fluent_syntax::parser::ParserError>)) -> Self {
      todo!()
   }
}

impl From<Vec<fluent::FluentError>> for Error {
   fn from(value: Vec<fluent::FluentError>) -> Self {
      todo!()
   }
}

impl From<unic_langid::LanguageIdentifierError> for Error {
   fn from(value: unic_langid::LanguageIdentifierError) -> Self {
      todo!()
   }
}