1 2 3 4 5 6 7 8 9
#[derive(Debug, thiserror::Error)] pub enum DeciderError { #[error("duplicate key")] DuplicateKey, #[error("key not found")] KeyNotFound, #[error("operation unsupported")] Unsupported, }