paft_core/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error, Clone, PartialEq, Eq)]
4/// Domain-oriented errors shared across the paft workspace.
5pub enum PaftError {
6 /// Invalid value provided for an enum parser.
7 #[error("Invalid {enum_name} value: '{value}'")]
8 InvalidEnumValue {
9 /// Enum type name for context (e.g., "Currency").
10 enum_name: &'static str,
11 /// The offending input value.
12 value: String,
13 },
14}