pub enum ResearchError {
ProjectNotFound {
path: PathBuf,
reason: String,
},
ScanFailed {
reason: String,
},
AnalysisFailed {
reason: String,
context: String,
},
DependencyParsingFailed {
language: String,
path: Option<PathBuf>,
reason: String,
},
IndexError {
reason: String,
operation: String,
},
SearchFailed {
query: String,
reason: String,
},
CacheError {
operation: String,
reason: String,
},
IoError {
reason: String,
},
SerializationError {
reason: String,
format: String,
},
InvalidConfiguration {
reason: String,
expected: String,
},
}Expand description
Errors that can occur during research operations
Variants§
ProjectNotFound
Project not found at the specified path
ScanFailed
Codebase scan failed
AnalysisFailed
Analysis operation failed
Fields
DependencyParsingFailed
Dependency parsing failed for a specific language
Fields
IndexError
Semantic index operation failed
SearchFailed
Search operation failed
CacheError
Cache operation failed
Fields
IoError
IO error with context
SerializationError
Serialization error
Fields
InvalidConfiguration
Invalid configuration
Trait Implementations§
Source§impl Debug for ResearchError
impl Debug for ResearchError
Source§impl Display for ResearchError
impl Display for ResearchError
Source§impl Error for ResearchError
impl Error for ResearchError
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<Error> for ResearchError
impl From<Error> for ResearchError
Source§impl From<Error> for ResearchError
impl From<Error> for ResearchError
Auto Trait Implementations§
impl Freeze for ResearchError
impl RefUnwindSafe for ResearchError
impl Send for ResearchError
impl Sync for ResearchError
impl Unpin for ResearchError
impl UnwindSafe for ResearchError
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