pub enum AnalysisError {
PatternCompilation {
pattern: String,
message: String,
},
InvalidPattern {
pattern: String,
},
MetaVariable {
variable: String,
message: String,
},
CrossFile {
message: String,
},
GraphConstruction {
message: String,
},
DependencyResolution {
message: String,
},
SymbolResolution {
symbol: String,
file_path: PathBuf,
},
TypeAnalysis {
message: String,
},
ScopeAnalysis {
message: String,
},
DepthLimitExceeded {
current_depth: usize,
max_depth: usize,
},
Cancelled {
reason: String,
},
ResourceExhaustion {
resource: String,
message: String,
},
}Expand description
Errors related to code analysis and pattern matching
Variants§
PatternCompilation
Pattern compilation failed
InvalidPattern
Invalid pattern syntax
MetaVariable
Meta-variable errors
CrossFile
Cross-file analysis errors
GraphConstruction
Graph construction errors
DependencyResolution
Dependency resolution errors
SymbolResolution
Symbol resolution errors
TypeAnalysis
Type analysis errors
ScopeAnalysis
Scope analysis errors
DepthLimitExceeded
Analysis depth limit exceeded
Cancelled
Analysis operation cancelled
ResourceExhaustion
Resource exhaustion during analysis
Trait Implementations§
Source§impl Debug for AnalysisError
impl Debug for AnalysisError
Source§impl Display for AnalysisError
impl Display for AnalysisError
Source§impl Error for AnalysisError
impl Error for AnalysisError
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<AnalysisError> for ServiceError
impl From<AnalysisError> for ServiceError
Source§fn from(source: AnalysisError) -> Self
fn from(source: AnalysisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnalysisError
impl RefUnwindSafe for AnalysisError
impl Send for AnalysisError
impl Sync for AnalysisError
impl Unpin for AnalysisError
impl UnsafeUnpin for AnalysisError
impl UnwindSafe for AnalysisError
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