pub enum FileSystemToolError {
InvalidUtf8Path(PathBuf),
InvalidLineRange {
from: Option<usize>,
to: Option<usize>,
},
}Expand description
Errors specific to filesystem tool operations.
These are domain errors that arise from invalid arguments or unsupported
paths rather than I/O failures. They are typically converted into
ToolError::InvalidInput
before being returned to the caller.
Variants§
InvalidUtf8Path(PathBuf)
The given path cannot be represented as valid UTF-8.
InvalidLineRange
The requested line range is invalid (e.g. from exceeds to).
Trait Implementations§
Source§impl Debug for FileSystemToolError
impl Debug for FileSystemToolError
Source§impl Display for FileSystemToolError
impl Display for FileSystemToolError
Source§impl Error for FileSystemToolError
impl Error for FileSystemToolError
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 FileSystemToolError
impl RefUnwindSafe for FileSystemToolError
impl Send for FileSystemToolError
impl Sync for FileSystemToolError
impl Unpin for FileSystemToolError
impl UnsafeUnpin for FileSystemToolError
impl UnwindSafe for FileSystemToolError
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