pub enum FixupError {
Show 15 variants
NoFixupMarkersFound,
InvalidDiffFormat {
block_index: usize,
reason: String,
},
GitApplyValidationFailed {
target_file: String,
reason: String,
},
GitApplyExecutionFailed {
target_file: String,
reason: String,
},
TargetFileNotFound {
path: String,
},
TempCopyFailed {
file: String,
reason: String,
},
DiffParsingFailed {
reason: String,
},
NoValidDiffBlocks,
AbsolutePath(PathBuf),
ParentDirEscape(PathBuf),
OutsideRepo(PathBuf),
CanonicalizationError(String),
SymlinkNotAllowed(PathBuf),
HardlinkNotAllowed(PathBuf),
FuzzyMatchFailed {
file: String,
expected_line: usize,
search_window: usize,
},
}Expand description
Errors that can occur during fixup detection and parsing
Variants§
NoFixupMarkersFound
InvalidDiffFormat
GitApplyValidationFailed
GitApplyExecutionFailed
TargetFileNotFound
TempCopyFailed
DiffParsingFailed
NoValidDiffBlocks
AbsolutePath(PathBuf)
ParentDirEscape(PathBuf)
OutsideRepo(PathBuf)
CanonicalizationError(String)
SymlinkNotAllowed(PathBuf)
HardlinkNotAllowed(PathBuf)
FuzzyMatchFailed
Trait Implementations§
Source§impl Debug for FixupError
impl Debug for FixupError
Source§impl Display for FixupError
impl Display for FixupError
Source§impl Error for FixupError
impl Error for FixupError
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()
Source§impl From<FixupError> for XCheckerError
impl From<FixupError> for XCheckerError
Source§fn from(source: FixupError) -> Self
fn from(source: FixupError) -> Self
Converts to this type from the input type.
Source§impl UserFriendlyError for FixupError
impl UserFriendlyError for FixupError
Source§fn user_message(&self) -> String
fn user_message(&self) -> String
Get a user-friendly error message
Source§fn suggestions(&self) -> Vec<String>
fn suggestions(&self) -> Vec<String>
Get suggested actions to resolve the error
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Get the error category for grouping similar errors
Auto Trait Implementations§
impl Freeze for FixupError
impl RefUnwindSafe for FixupError
impl Send for FixupError
impl Sync for FixupError
impl Unpin for FixupError
impl UnsafeUnpin for FixupError
impl UnwindSafe for FixupError
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