Skip to main content

rsigma_runtime/
error.rs

1/// Errors from the rsigma runtime (streaming I/O, processing, engine operations).
2#[derive(Debug, thiserror::Error)]
3pub enum RuntimeError {
4    /// I/O error (stdin read, file write, etc.)
5    #[error("I/O error: {0}")]
6    Io(#[from] std::io::Error),
7    /// JSON serialization error in a sink.
8    #[error("serialization error: {0}")]
9    Serialization(#[from] serde_json::Error),
10    /// A permanent delivery failure that must not be retried (for example a
11    /// 4xx from a webhook target whose rendered body will not heal on retry).
12    /// The async delivery layer routes these straight to the DLQ instead of
13    /// applying the retry/backoff schedule.
14    #[error("permanent delivery failure: {0}")]
15    Permanent(String),
16}