userver: userver/ugrpc/status_codes.hpp Source File
Loading...
Searching...
No Matches
status_codes.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/ugrpc/status_codes.hpp
4/// @brief Utilities for grpc::StatusCode
5
6#include <grpcpp/support/status.h>
7
8USERVER_NAMESPACE_BEGIN
9
10namespace ugrpc {
11
12/// @brief Convert string to grpc::StatusCode
13/// @throws std::runtime_error
14grpc::StatusCode StatusCodeFromString(std::string_view str);
15
16/// @brief Convert grpc::StatusCode to string
18
19} // namespace ugrpc
20
21USERVER_NAMESPACE_END