pub enum CliError {
Lingora(LingoraError),
Io(Error),
NoParent(String),
IntegrityErrorsDetected,
}Expand description
Main error type for the lingora-cli binary.
Variants§
Lingora(LingoraError)
Any error that originated from lingora-core.
Io(Error)
Low-level I/O error (e.g. cannot read Lingora.toml, cannot write output,
permission denied, disk full).
NoParent(String)
A path provided or discovered (e.g. config file, output destination)
IntegrityErrorsDetected
The audit completed successfully (in the sense there werw no fatal errors), but issues were found (missing translations, redundant keys, macro mismatches, etc.).
This variant is used to signal a non-zero exit code in CI/pre-commit hooks while still allowing structured output to be printed.
It is not an error in the traditional sense, but an outcome indicating “localization is not perfect”.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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<LingoraError> for CliError
impl From<LingoraError> for CliError
Source§fn from(source: LingoraError) -> Self
fn from(source: LingoraError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
impl !UnwindSafe for CliError
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
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.