#[non_exhaustive]pub enum AnalysisError {
Io(Error),
NoGrammarsAvailable,
Config(ConfigError),
SnapshotIo(Error),
InvalidNodeId {
id: String,
reason: String,
},
InvalidConfig {
message: String,
},
}Expand description
Errors produced by the sdivi-core pure-compute API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
I/O error (only reachable when the caller bridges to sdivi-pipeline).
NoGrammarsAvailable
No tree-sitter grammar was found for any language detected in the repository. Analysis cannot proceed.
Config(ConfigError)
Configuration error surfaced from within the pipeline.
SnapshotIo(Error)
I/O error while writing a snapshot file or persisting the partition cache.
InvalidNodeId
A node ID failed the canonicalization rules.
See crate::input::validate_node_id for the full set of rules.
InvalidConfig
A configuration value is invalid.
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
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<ConfigError> for AnalysisError
impl From<ConfigError> for AnalysisError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> 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