pub enum FormattingError {
PerltidyNotFound(String),
PerltidyError(String),
IoError(String),
}Expand description
Formatting error.
Variants§
PerltidyNotFound(String)
perltidy executable not found on system PATH.
PerltidyError(String)
Error occurred during perltidy execution.
This usually means perltidy ran but reported a problem — check that the Perl code is syntactically valid, or inspect the perltidy output below.
IoError(String)
I/O error during file operations.
Implementations§
Source§impl FormattingError
impl FormattingError
Sourcepub fn error_kind(&self) -> &'static str
pub fn error_kind(&self) -> &'static str
Return a stable machine-readable error kind string for structured LSP error data.
Used by LSP handlers to populate the JSON-RPC error data field so that
clients (e.g. the VSCode extension) can present targeted remediation actions.
Trait Implementations§
Source§impl Debug for FormattingError
impl Debug for FormattingError
Source§impl Display for FormattingError
impl Display for FormattingError
Source§impl Error for FormattingError
impl Error for FormattingError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for FormattingError
impl RefUnwindSafe for FormattingError
impl Send for FormattingError
impl Sync for FormattingError
impl Unpin for FormattingError
impl UnsafeUnpin for FormattingError
impl UnwindSafe for FormattingError
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