Skip to main content

jellyflow_runtime/runtime/conformance/fixtures/
error.rs

1use super::super::approval::ConformanceApprovalError;
2
3#[derive(Debug, thiserror::Error)]
4pub enum ConformanceFixtureFileError {
5    #[error("failed to read conformance fixture directory: {path}")]
6    ReadDirectory {
7        path: String,
8        source: std::io::Error,
9    },
10    #[error("failed to read conformance fixture directory entry: {path}")]
11    ReadDirectoryEntry {
12        path: String,
13        source: std::io::Error,
14    },
15    #[error("failed to read conformance fixture directory entry type: {path}")]
16    ReadDirectoryEntryType {
17        path: String,
18        source: std::io::Error,
19    },
20    #[error("failed to read conformance fixture file: {path}")]
21    Read {
22        path: String,
23        source: std::io::Error,
24    },
25    #[error("failed to parse conformance fixture JSON: {path}")]
26    Parse {
27        path: String,
28        source: serde_json::Error,
29    },
30    #[error("failed to write conformance fixture file: {path}")]
31    Write {
32        path: String,
33        source: std::io::Error,
34    },
35    #[error("failed to serialize conformance fixture JSON: {path}")]
36    Serialize {
37        path: String,
38        source: serde_json::Error,
39    },
40    #[error("failed to approve conformance fixture file: {path}")]
41    Approve {
42        path: String,
43        source: ConformanceApprovalError,
44    },
45}