mirror of
https://github.com/ruvnet/RuView
synced 2026-07-31 18:51:42 +00:00
407b46b206
Add ruvnet/midstream (AIMDS real-time inference) and ruvnet/sublinear-time-solver (sublinear optimization algorithms) as vendored dependencies under vendor/.
38 lines
880 B
Rust
38 lines
880 B
Rust
//! Error types for AIMDS analysis layer
|
|
|
|
use thiserror::Error;
|
|
|
|
/// Analysis error types
|
|
#[derive(Error, Debug)]
|
|
pub enum AnalysisError {
|
|
#[error("Behavioral analysis failed: {0}")]
|
|
BehavioralAnalysis(String),
|
|
|
|
#[error("Policy verification failed: {0}")]
|
|
PolicyVerification(String),
|
|
|
|
#[error("LTL checking failed: {0}")]
|
|
LTLCheck(String),
|
|
|
|
#[error("Invalid input: {0}")]
|
|
InvalidInput(String),
|
|
|
|
#[error("Configuration error: {0}")]
|
|
Configuration(String),
|
|
|
|
#[error("Temporal attractor error: {0}")]
|
|
TemporalAttractor(String),
|
|
|
|
#[error("Neural solver error: {0}")]
|
|
NeuralSolver(String),
|
|
|
|
#[error("Core error: {0}")]
|
|
Core(#[from] aimds_core::error::AimdsError),
|
|
|
|
#[error("Internal error: {0}")]
|
|
Internal(String),
|
|
}
|
|
|
|
/// Result type for analysis operations
|
|
pub type AnalysisResult<T> = Result<T, AnalysisError>;
|