summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
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 {