pub enum RefactorError {
UriConversion(String),
DocumentNotIndexed(String),
InvalidPosition {
file: String,
details: String,
},
SymbolNotFound {
symbol: String,
file: String,
},
ParseError(String),
InvalidInput(String),
FileSystemError(String),
}Expand description
Errors that can occur during workspace refactoring operations
Variants§
UriConversion(String)
Failed to convert between file paths and URIs
DocumentNotIndexed(String)
Document not found in workspace index
InvalidPosition
Invalid position or range in document
Fields
SymbolNotFound
Symbol not found in workspace
Fields
ParseError(String)
Failed to parse or analyze code structure
InvalidInput(String)
Input validation failed
FileSystemError(String)
File system operation failed
Trait Implementations§
Source§impl Clone for RefactorError
impl Clone for RefactorError
Source§fn clone(&self) -> RefactorError
fn clone(&self) -> RefactorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefactorError
impl Debug for RefactorError
Source§impl Display for RefactorError
impl Display for RefactorError
Source§impl Error for RefactorError
impl Error for RefactorError
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 RefactorError
impl RefUnwindSafe for RefactorError
impl Send for RefactorError
impl Sync for RefactorError
impl Unpin for RefactorError
impl UnsafeUnpin for RefactorError
impl UnwindSafe for RefactorError
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