pub enum I18NError {
Fluent(Vec<FluentError>),
FluentParser(Vec<ParserError>),
FluentNoValue,
FluentMessageNotFound {
id: String,
},
LanguageIdentifier(LanguageIdentifierError),
Io(Error),
}
Expand description
A possible error value occurred when loading i18n resources.
Variants
Fluent(Vec<FluentError>)
Fluent error.
FluentParser(Vec<ParserError>)
Fluent FTL parser error.
FluentNoValue
There is no value in the message.
FluentMessageNotFound
Fields
id: String
Message id
Message id was not found.
LanguageIdentifier(LanguageIdentifierError)
Invalid language id.
Io(Error)
Io error
Trait Implementations
sourceimpl Error for I18NError
impl Error for I18NError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl ResponseError for I18NError
impl ResponseError for I18NError
sourcefn status(&self) -> StatusCode
fn status(&self) -> StatusCode
The status code of this error.
Auto Trait Implementations
impl !RefUnwindSafe for I18NError
impl Send for I18NError
impl Sync for I18NError
impl Unpin for I18NError
impl !UnwindSafe for I18NError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more