Skip to content

Refactor IxaError to use thiserror #739

@RobertJacobsonCDC

Description

@RobertJacobsonCDC

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:

What's easy for client code to integrate?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions