Files
crank/crates/crank-mapping/src/error.rs
T
github-ops ba29ac7b94
Deploy / deploy (push) Successful in 2m44s
CI / Rust Checks (push) Successful in 5m31s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 2s
CI / Frontend E2E (push) Successful in 4m24s
chore: publish clean community baseline
2026-06-19 16:45:51 +00:00

21 lines
790 B
Rust

use thiserror::Error;
#[derive(Clone, Debug, PartialEq, Eq, Error)]
pub enum MappingError {
#[error("invalid JSONPath: {path}")]
InvalidJsonPath { path: String },
#[error("unsupported source root {root} for {context} mapping")]
UnsupportedSourceRoot { root: String, context: &'static str },
#[error("unsupported target root {root} for {context} mapping")]
UnsupportedTargetRoot { root: String, context: &'static str },
#[error("mixed mapping target contexts are not allowed")]
MixedTargetContext,
#[error("missing required value at {path}")]
MissingRequiredValue { path: String },
#[error("transform {transform} cannot be applied to {actual}")]
InvalidTransformInput {
transform: &'static str,
actual: &'static str,
},
}