diff options
author | zaaarf <me@zaaarf.foo> | 2024-02-12 21:07:22 +0100 |
---|---|---|
committer | zaaarf <me@zaaarf.foo> | 2024-02-12 21:21:54 +0100 |
commit | a1433a32eefc77b5b6722be8cf86ad2ac8406941 (patch) | |
tree | ac684b145a53b28f939cec60b61368de6a53bab7 /src/error.rs | |
parent | ecfe19f7e8046eab3608115b3ad3d77731b99f98 (diff) |
docs: written docs
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index 85e6774..a777a8b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,11 +4,14 @@ use fluent::FluentResource; pub type Result<T> = StdResult<T, Error>; +/// Simple wrapper around the errors that may occur during the program's execution. #[derive(Debug)] pub enum Error { + GenericError(String), IoError(std::io::Error), LanguageIdentifierError(unic_langid::LanguageIdentifierError), - FluentError(Vec<fluent::FluentError>) + FluentError(Vec<fluent::FluentError>), + MissingMessageError(String) } impl From<std::io::Error> for Error { |