(&self)
| 15 | |
| 16 | impl DetailableError for ArtifactError { |
| 17 | fn details(&self) -> Option<HashMap<String, String>> { |
| 18 | let mut details = HashMap::new(); |
| 19 | match self { |
| 20 | ArtifactError::ValidationError { info } => { |
| 21 | details.insert("info".to_string(), info.to_string()); |
| 22 | Some(details) |
| 23 | } |
| 24 | ArtifactError::NotFound { id } => { |
| 25 | details.insert("id".to_string(), id.to_string()); |
| 26 | Some(details) |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | } |