generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Milestone
Description
Our current error type is IxaError:
pub enum IxaError {
IoError(io::Error),
JsonError(serde_json::Error),
CsvError(csv::Error),
Utf8Error(std::string::FromUtf8Error),
ParseIntError(std::num::ParseIntError),
IxaError(String),
}But we haven't really taken advantage of it and tend to just use IxaError::IxaError("some error message".to_string()).
Alternatives:
- https://docs.rs/thiserror/latest/thiserror/
- https://docs.rs/anyhow/latest/anyhow/
- Make
IxaErrorricher and use it in more places.
What's easy for client code to integrate?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels