Skip to content

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented May 1, 2022

Changes the previous string-oriented Error type into a structured enum with a variant for each type of error.

This is a breaking change, so it also bumps the version to 2.0.0-pre. There will be additional breaking changes beyond this one before a final 2.0.0 release.

Changes the previous string-oriented `Error` type into a structured enum
with a variant for each type of error.

Adds a `MetricType` enum for identifying the type of each metric, and
replaces the `Metric::NAME` constant with `Metric::TYPE`, with a
convenience `Metric::name()` helper function to get the name.

This is a breaking change, so it also bumps the version to 2.0.0-pre.
There will be additional breaking changes beyond this one before a final
2.0.0 release.
@tarcieri tarcieri force-pushed the cvss/error-refactor branch from e313a77 to b49cbb5 Compare May 1, 2022 23:13
@tarcieri tarcieri merged commit f011cde into main May 1, 2022
@tarcieri tarcieri deleted the cvss/error-refactor branch May 1, 2022 23:30
@tarcieri tarcieri mentioned this pull request May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant