userver: ugrpc::client::ErrorWithStatus Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
ugrpc::client::ErrorWithStatus Class Reference

Error with grpc::Status details. More...

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

+ Inheritance diagram for ugrpc::client::ErrorWithStatus:
+ Collaboration diagram for ugrpc::client::ErrorWithStatus:

Public Member Functions

 ErrorWithStatus (std::string_view call_name, grpc::Status &&status, std::optional< google::rpc::Status > &&gstatus, std::optional< std::string > &&message)
 
const grpc::Status & GetStatus () const noexcept
 
const std::optional< google::rpc::Status > & GetGStatus () const noexcept
 
const std::optional< std::string > & GetGStatusString () const noexcept
 
- Public Member Functions inherited from ugrpc::client::RpcError
 RpcError (std::string_view call_name, std::string_view additional_info)
 
- Public Member Functions inherited from ugrpc::client::BaseError
 BaseError (std::string message)
 
const char * what () const noexcept override
 

Detailed Description

Error with grpc::Status details.

See also
<grpcpp/impl/codegen/status_code_enum.h> for error code details

Definition at line 55 of file exceptions.hpp.


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