Files
compliance-scanner-agent/compliance-core/src/error.rs
T
Sharang ParnerkarandClaude Opus 4.6 cea8f59e10 Add DAST, graph modules, toast notifications, and dashboard enhancements
Add DAST scanning and code knowledge graph features across the stack:
- compliance-dast and compliance-graph workspace crates
- Agent API handlers and routes for DAST targets/scans and graph builds
- Core models and traits for DAST and graph domains
- Dashboard pages for DAST targets/findings/overview and graph explorer/impact
- Toast notification system with auto-dismiss for async action feedback
- Button click animations and disabled states for better UX

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 13:53:50 +01:00

53 lines
1.0 KiB
Rust

use thiserror::Error;
#[derive(Error, Debug)]
pub enum CoreError {
#[error("Database error: {0}")]
#[cfg(feature = "mongodb")]
Database(#[from] mongodb::error::Error),
#[error("Database error: {0}")]
#[cfg(not(feature = "mongodb"))]
Database(String),
#[error("Serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("Git error: {0}")]
Git(String),
#[error("Scanner error: {source}")]
Scanner {
scanner: String,
#[source]
source: Box<dyn std::error::Error + Send + Sync>,
},
#[error("LLM error: {0}")]
Llm(String),
#[error("Issue tracker error: {0}")]
IssueTracker(String),
#[error("HTTP error: {0}")]
Http(String),
#[error("Configuration error: {0}")]
Config(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Graph error: {0}")]
Graph(String),
#[error("DAST error: {0}")]
Dast(String),
#[error("Not found: {0}")]
NotFound(String),
#[error("{0}")]
Other(String),
}