ephemeris_documents/error/merge.rs
1//! Errors from merging a desired document into a current one.
2
3use crate::path::KeyPath;
4
5/// Error returned while merging a desired document into a current one.
6#[derive(Debug, Clone, thiserror::Error)]
7pub enum MergeError {
8 /// A path holds a value of a different kind than the merge needs, and
9 /// replacing it would destroy user-owned data.
10 #[error("value at `{path}` has an incompatible type")]
11 TypeConflict {
12 /// The key path of the conflicting value.
13 path: KeyPath,
14 },
15}