userver: ugrpc::server::ErrorWithStatus Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
ugrpc::server::ErrorWithStatus Class Reference

Your opinion will help to improve our service

Leave a feedback >

#include <userver/ugrpc/server/exceptions.hpp>

Detailed Description

Users can throw ErrorWithStatus in their RPC's implementation to return provided status code as a result.

Definition at line 45 of file exceptions.hpp.

+ Inheritance diagram for ugrpc::server::ErrorWithStatus:

Public Member Functions

 ErrorWithStatus (grpc::Status status)
 
 ErrorWithStatus (grpc::StatusCode status_code, std::string message)
 
const grpc::Status & GetStatus () const
 
grpc::Status && ExtractStatus ()
 
const char * what () const noexcept override
 

The documentation for this class was generated from the following file: