varpulis_runtime/engine/
error.rs1#[cfg(feature = "async-runtime")]
4use varpulis_connectors::SinkError;
5
6#[cfg(feature = "async-runtime")]
7use crate::enrichment::EnrichmentError;
8use crate::persistence::StoreError;
9
10#[derive(Debug, thiserror::Error)]
12pub enum EngineError {
13 #[error("compilation error: {0}")]
15 Compilation(String),
16
17 #[error("stream not found: {0}")]
19 StreamNotFound(String),
20
21 #[cfg(feature = "async-runtime")]
23 #[error("sink error: {0}")]
24 Sink(#[from] SinkError),
25
26 #[cfg(feature = "async-runtime")]
28 #[error("enrichment error: {0}")]
29 Enrichment(#[from] EnrichmentError),
30
31 #[error("store error: {0}")]
33 Store(#[from] StoreError),
34
35 #[error("pipeline error: {0}")]
37 Pipeline(String),
38}