spatialrust_sync/
error.rs1pub type SyncResult<T> = Result<T, SyncError>;
5
6#[derive(Debug, thiserror::Error)]
8pub enum SyncError {
9 #[error("invalid sync configuration: {0}")]
11 InvalidConfiguration(String),
12 #[error("episode {resource} limit exceeded: requested {requested} with {current} already held (limit {limit})")]
14 EpisodeLimitExceeded {
15 resource: &'static str,
17 requested: u64,
19 current: u64,
21 limit: u64,
23 },
24 #[error("missing `{0}`")]
26 #[allow(dead_code)]
27 Missing(String),
28 #[error("no transform path from `{from}` to `{to}`")]
30 NoTransformPath {
31 from: String,
33 to: String,
35 },
36 #[error(transparent)]
38 Records(#[from] spatialrust_records::RecordsError),
39 #[error(transparent)]
41 Spatial(#[from] spatialrust_core::SpatialError),
42 #[error("IO error: {0}")]
44 Io(String),
45 #[error("MCAP error: {0}")]
47 Mcap(String),
48}