Namespaces | Macros | Functions
status_helper.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/status_helper.h"
#include <string.h>
#include <algorithm>
#include <utility>
#include "absl/strings/cord.h"
#include "absl/strings/escaping.h"
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "absl/time/clock.h"
#include "google/protobuf/any.upb.h"
#include "google/rpc/status.upb.h"
#include "upb/upb.h"
#include "upb/upb.hpp"
#include <grpc/support/log.h>
#include "src/core/lib/slice/percent_encoding.h"
#include "src/core/lib/slice/slice.h"
Include dependency graph for status_helper.cc:

Go to the source code of this file.

Namespaces

 grpc_core
 
 grpc_core::internal
 

Macros

#define TYPE_CHILDREN_TAG   "children"
 
#define TYPE_INT_TAG   "int."
 
#define TYPE_STR_TAG   "str."
 
#define TYPE_TIME_TAG   "time."
 
#define TYPE_URL(name)   (TYPE_URL_PREFIX name)
 
#define TYPE_URL_PREFIX   "type.googleapis.com/grpc.status."
 

Functions

void grpc_core::StatusAddChild (absl::Status *status, absl::Status child)
 Adds a child status to status. More...
 
uintptr_t grpc_core::internal::StatusAllocHeapPtr (absl::Status s)
 
absl::Status grpc_core::StatusCreate (absl::StatusCode code, absl::string_view msg, const DebugLocation &location, std::vector< absl::Status > children) GRPC_MUST_USE_RESULT
 Creates a status with given additional information. More...
 
void grpc_core::internal::StatusFreeHeapPtr (uintptr_t ptr)
 Frees the allocated status at heap ptr. More...
 
absl::Status grpc_core::internal::StatusFromProto (google_rpc_Status *msg)
 
std::vector< absl::Statusgrpc_core::StatusGetChildren (absl::Status status) GRPC_MUST_USE_RESULT
 Returns all children status from a status. More...
 
absl::Status grpc_core::internal::StatusGetFromHeapPtr (uintptr_t ptr)
 Get the status from a heap ptr. More...
 
absl::optional< intptr_tgrpc_core::StatusGetInt (const absl::Status &status, StatusIntProperty key) GRPC_MUST_USE_RESULT
 Gets the int property from the status. More...
 
absl::optional< std::string > grpc_core::StatusGetStr (const absl::Status &status, StatusStrProperty key) GRPC_MUST_USE_RESULT
 Gets the str property from the status. More...
 
absl::optional< absl::Timegrpc_core::StatusGetTime (const absl::Status &status, StatusTimeProperty key) GRPC_MUST_USE_RESULT
 Gets the time property from the status. More...
 
absl::Status grpc_core::internal::StatusMoveFromHeapPtr (uintptr_t ptr)
 Move the status from a heap ptr. (GetFrom & FreeHeap) More...
 
void grpc_core::StatusSetInt (absl::Status *status, StatusIntProperty key, intptr_t value)
 Sets the int property to the status. More...
 
void grpc_core::StatusSetStr (absl::Status *status, StatusStrProperty key, absl::string_view value)
 Sets the str property to the status. More...
 
void grpc_core::StatusSetTime (absl::Status *status, StatusTimeProperty key, absl::Time time)
 Sets the time property to the status. More...
 
google_rpc_Statusgrpc_core::internal::StatusToProto (const absl::Status &status, upb_Arena *arena)
 
std::string grpc_core::StatusToString (const absl::Status &status)
 

Macro Definition Documentation

◆ TYPE_CHILDREN_TAG

#define TYPE_CHILDREN_TAG   "children"

Definition at line 53 of file status_helper.cc.

◆ TYPE_INT_TAG

#define TYPE_INT_TAG   "int."

Definition at line 50 of file status_helper.cc.

◆ TYPE_STR_TAG

#define TYPE_STR_TAG   "str."

Definition at line 51 of file status_helper.cc.

◆ TYPE_TIME_TAG

#define TYPE_TIME_TAG   "time."

Definition at line 52 of file status_helper.cc.

◆ TYPE_URL

#define TYPE_URL (   name)    (TYPE_URL_PREFIX name)

Definition at line 54 of file status_helper.cc.

◆ TYPE_URL_PREFIX

#define TYPE_URL_PREFIX   "type.googleapis.com/grpc.status."

Definition at line 49 of file status_helper.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:32