userver: userver/ugrpc/server/impl/error_code.hpp Source File
Loading...
Searching...
No Matches
error_code.hpp
1#pragma once
2
3#include <grpcpp/support/status.h>
4
5#include <userver/server/handlers/exceptions.hpp>
6
7USERVER_NAMESPACE_BEGIN
8
9namespace ugrpc::server::impl {
10
11grpc::StatusCode CustomStatusToGrpc(
12 USERVER_NAMESPACE::server::handlers::HandlerErrorCode code);
13
14} // namespace ugrpc::server::impl
15
16USERVER_NAMESPACE_END