userver: ugrpc::DebugInfo Struct Reference
Loading...
Searching...
No Matches
ugrpc::DebugInfo Struct Reference

#include <userver/ugrpc/rich_status.hpp>

Detailed Description

Provides debugging information such as stack traces.

See also
ugrpc::RichStatus

Example usage:

grpc::StatusCode::INTERNAL,
"Unexpected error",
{
"at Handler::Process() in handler.cpp:42",
"at main() in main.cpp:10",
},
"Null pointer dereference in request processing",
},
};

Definition at line 150 of file rich_status.hpp.

Public Member Functions

google::rpc::DebugInfo ToGoogleErrorDetail () const &
 
google::rpc::DebugInfo ToGoogleErrorDetail () &&
 

Static Public Member Functions

static std::optional< DebugInfoTryUnpack (const google::protobuf::Any &any)
 

Public Attributes

std::vector< std::string > stack_entries
 

Member Data Documentation

◆ stack_entries

std::vector<std::string> ugrpc::DebugInfo::stack_entries

Definition at line 151 of file rich_status.hpp.


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