pub enum EditorError {
GeneratedFile(PathBuf, GeneratedFile),
TemplateError(PathBuf, String),
FormattingUnpreservable(PathBuf, FormattingUnpreservable),
IoError(Error),
BrzError(Error),
}Expand description
Error that can occur when editing a file.
Variants§
GeneratedFile(PathBuf, GeneratedFile)
One of the files is generated from another file, and we were unable to edit it.
TemplateError(PathBuf, String)
Error in a template file
FormattingUnpreservable(PathBuf, FormattingUnpreservable)
Unable to preserve formatting in a file.
IoError(Error)
I/O error
BrzError(Error)
Breezy error
Trait Implementations§
Source§impl Debug for EditorError
impl Debug for EditorError
Source§impl Display for EditorError
impl Display for EditorError
Source§impl Error for EditorError
impl Error for EditorError
1.30.0§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§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 EditorError
impl From<Error> for EditorError
Auto Trait Implementations§
impl !Freeze for EditorError
impl !RefUnwindSafe for EditorError
impl Send for EditorError
impl Sync for EditorError
impl Unpin for EditorError
impl !UnwindSafe for EditorError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.