Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_GPRPP_STATUS_HELPER_H
20 #define GRPC_CORE_LIB_GPRPP_STATUS_HELPER_H
29 #include "absl/status/status.h"
30 #include "absl/strings/string_view.h"
31 #include "absl/time/time.h"
32 #include "absl/types/optional.h"
185 #endif // GRPC_CORE_LIB_GPRPP_STATUS_HELPER_H
struct google_rpc_Status google_rpc_Status
absl::Status StatusFromProto(google_rpc_Status *msg)
@ kFileLine
LINE from the call site creating the error
@ kRpcStatus
grpc status code representing this error
@ kRawBytes
hex dump (or similar) with the data that generated this error
std::vector< absl::Status > StatusGetChildren(absl::Status status)
Returns all children status from a status.
@ kTsiCode
TSI status code associated with the error.
@ kFile
source file in which this error occurred
void StatusAddChild(absl::Status *status, absl::Status child)
Adds a child status to status.
@ kOsError
operating system description of this error
uintptr_t StatusAllocHeapPtr(absl::Status s)
@ kCreated
timestamp of error creation
void StatusSetTime(absl::Status *status, StatusTimeProperty key, absl::Time time)
Sets the time property to the status.
@ kLbPolicyDrop
LB policy drop.
absl::Status StatusCreate(absl::StatusCode code, absl::string_view msg, const DebugLocation &location, std::vector< absl::Status > children)
Creates a status with given additional information.
@ kTsiError
tsi error string associated with this error
@ kSyscall
syscall that generated this error
absl::optional< std::string > StatusGetStr(const absl::Status &status, StatusStrProperty key)
Gets the str property from the status.
grpc_core::ScopedArenaPtr arena
void StatusSetInt(absl::Status *status, StatusIntProperty key, intptr_t value)
Sets the int property to the status.
std::string StatusToString(const absl::Status &status)
@ kFilename
filename that we were trying to read/write when this error occurred
absl::Status StatusGetFromHeapPtr(uintptr_t ptr)
Get the status from a heap ptr.
@ kWsaError
WSAGetLastError() reported when this error occurred.
void StatusSetStr(absl::Status *status, StatusStrProperty key, absl::string_view value)
Sets the str property to the status.
@ kDescription
top-level textual description of this error
_W64 unsigned int uintptr_t
void StatusFreeHeapPtr(uintptr_t ptr)
Frees the allocated status at heap ptr.
@ ChannelConnectivityState
channel connectivity state associated with the error
@ kValue
value associated with the error
StatusTimeProperty
This enum should have the same value of grpc_error_times.
google_rpc_Status * StatusToProto(const absl::Status &status, upb_Arena *arena)
@ kGrpcMessage
grpc status message associated with this error
absl::optional< absl::Time > StatusGetTime(const absl::Status &status, StatusTimeProperty key)
Gets the time property from the status.
@ kKey
key associated with the error
@ kHttpStatus
HTTP status (i.e. 404)
absl::Status StatusMoveFromHeapPtr(uintptr_t ptr)
Move the status from a heap ptr. (GetFrom & FreeHeap)
@ kSize
context sensitive size associated with the error
StatusStrProperty
This enum should have the same value of grpc_error_strs.
absl::optional< intptr_t > StatusGetInt(const absl::Status &status, StatusIntProperty key)
Gets the int property from the status.
@ kOccurredDuringWrite
chttp2: did the error occur while a write was in progress
StatusIntProperty
This enum should have the same value of grpc_error_ints.
@ kHttp2Error
http2 error code associated with the error (see the HTTP2 RFC)
std::map< std::string, Node * > children
@ kFd
File descriptor associated with this error.
@ kIndex
context sensitive index associated with the error
@ kErrorNo
'errno' from the operating system
@ kTargetAddress
peer that we were trying to communicate when this error occurred
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:17