Skip to content

Commit

Permalink
schema_registry/error: Document error_info
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed May 13, 2024
1 parent c999928 commit 5fb72fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/v/pandaproxy/schema_registry/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@

namespace pandaproxy::schema_registry {

/// \brief error_info stores an error_code and custom message.
///
/// This class is useful for transporting via an outcome::result
/// and automatic conversion to an `exception`.
/// See `outcome_throw_as_system_error_with_payload`.
class error_info {
public:
error_info() = default;
Expand Down

0 comments on commit 5fb72fc

Please sign in to comment.