-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify errors to a single error type.
This introduces a new `ErrorResponse` type, wrapping the `ndc_models::ErrorResponse` type and adding a status code. Instead of each connector method returning its own error type, all methods now return the same general type, allowing the connector implementor to decide how best to construct it. This supersedes the various error enums which only had an `Other` case. Error enums with more cases have been kept (though their `Other` cases have been removed), with `From<T> for ErrorResponse` implementations.
- Loading branch information
1 parent
4b587da
commit 4de7d49
Showing
6 changed files
with
256 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.