pub enum XcStringsError {
Show 22 variants
FileNotFound {
path: PathBuf,
},
InvalidPath {
path: PathBuf,
reason: String,
},
NotXcStrings {
path: PathBuf,
},
InvalidFormat(String),
JsonParse(String),
LocaleNotFound(String),
LocaleAlreadyExists(String),
NoActiveFile,
InvalidBatchSize(String),
FileTooLarge {
size_mb: u64,
max_mb: u64,
},
FileLocked {
path: PathBuf,
},
CannotRemoveSourceLocale(String),
GlossaryError(String),
StringsParse {
line: usize,
message: String,
},
StringsdictParse(String),
XliffParse(String),
XliffFormat(String),
FileAlreadyExists {
path: PathBuf,
},
KeyNotFound(String),
KeyAlreadyExists(String),
Io(Error),
Serde(Error),
}Variants§
FileNotFound
InvalidPath
NotXcStrings
InvalidFormat(String)
JsonParse(String)
LocaleNotFound(String)
LocaleAlreadyExists(String)
NoActiveFile
InvalidBatchSize(String)
FileTooLarge
FileLocked
CannotRemoveSourceLocale(String)
GlossaryError(String)
StringsParse
StringsdictParse(String)
XliffParse(String)
XliffFormat(String)
FileAlreadyExists
KeyNotFound(String)
KeyAlreadyExists(String)
Io(Error)
Serde(Error)
Trait Implementations§
Source§impl Debug for XcStringsError
impl Debug for XcStringsError
Source§impl Display for XcStringsError
impl Display for XcStringsError
Source§impl Error for XcStringsError
impl Error for XcStringsError
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 From<Error> for XcStringsError
impl From<Error> for XcStringsError
Source§impl From<Error> for XcStringsError
impl From<Error> for XcStringsError
Source§impl From<XcStringsError> for ErrorData
impl From<XcStringsError> for ErrorData
Source§fn from(e: XcStringsError) -> Self
fn from(e: XcStringsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XcStringsError
impl !RefUnwindSafe for XcStringsError
impl Send for XcStringsError
impl Sync for XcStringsError
impl Unpin for XcStringsError
impl UnsafeUnpin for XcStringsError
impl !UnwindSafe for XcStringsError
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