-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kafka: Move make_error_code(kafka::error_code)
Move it from the pandaproxy project to kafka. There are two ways to map to an `error_condition` 1) Override `error_category::default_error_condition` 2) Override `error_category::equivalent` 1) requires a global error_condition, but `reply_error_code` is specific to pandaproxy, and the dependency works the wrong way. 2) Could work, but only for comparing a `std::error_code` with a reply_error_code-based error_condition, not for converting it To break the dependency, overload `make_error_condition` that takes a `std::error_code`, and map from kafka::error_code to reply_error_condition as before. Signed-off-by: Ben Pope <ben@redpanda.com>
- Loading branch information
Showing
5 changed files
with
32 additions
and
31 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
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
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