pub enum FluentCatalogError {
InvalidLocale {
locale: String,
source: LanguageIdentifierError,
},
Parse {
locale: String,
errors: Vec<String>,
},
Resource {
locale: String,
errors: Vec<String>,
},
EmptyMessageId {
field: &'static str,
},
EmptyFallbackMessage {
field: &'static str,
},
}Expand description
Errors returned while building a FluentCatalog.
Variants§
InvalidLocale
The locale could not be parsed by unic-langid.
Fields
§
source: LanguageIdentifierErrorParser error returned by unic-langid.
Parse
FTL source could not be parsed.
Fields
Resource
Fluent rejected the parsed resource.
Fields
EmptyMessageId
Hidden-denial generic message id was blank.
EmptyFallbackMessage
Hidden-denial fallback message was blank.
Trait Implementations§
Source§impl Debug for FluentCatalogError
impl Debug for FluentCatalogError
Source§impl Display for FluentCatalogError
impl Display for FluentCatalogError
Source§impl Error for FluentCatalogError
impl Error for FluentCatalogError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FluentCatalogError
impl PartialEq for FluentCatalogError
impl StructuralPartialEq for FluentCatalogError
Auto Trait Implementations§
impl Freeze for FluentCatalogError
impl RefUnwindSafe for FluentCatalogError
impl Send for FluentCatalogError
impl Sync for FluentCatalogError
impl Unpin for FluentCatalogError
impl UnsafeUnpin for FluentCatalogError
impl UnwindSafe for FluentCatalogError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more