Skip to main content

sift_core/search/output/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum OutputError {
5    #[error("JSON output is only supported for standard search (not count or file-list modes)")]
6    JsonOutputIncompatibleMode,
7
8    #[error("JSON serialization error: {0}")]
9    JsonSerialize(#[from] serde_json::Error),
10
11    #[error("IO error: {0}")]
12    Io(#[from] std::io::Error),
13}