Namespaces | Enumerations | Functions
status_helper.h File Reference
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <string>
#include <vector>
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "absl/time/time.h"
#include "absl/types/optional.h"
#include "src/core/lib/gprpp/debug_location.h"
Include dependency graph for status_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 grpc_core
 
 grpc_core::internal
 

Enumerations

enum  grpc_core::StatusIntProperty {
  grpc_core::StatusIntProperty::kErrorNo, grpc_core::StatusIntProperty::kFileLine, grpc_core::StatusIntProperty::kStreamId, grpc_core::StatusIntProperty::kRpcStatus,
  grpc_core::StatusIntProperty::kOffset, grpc_core::StatusIntProperty::kIndex, grpc_core::StatusIntProperty::kSize, grpc_core::StatusIntProperty::kHttp2Error,
  grpc_core::StatusIntProperty::kTsiCode, grpc_core::StatusIntProperty::kWsaError, grpc_core::StatusIntProperty::kFd, grpc_core::StatusIntProperty::kHttpStatus,
  grpc_core::StatusIntProperty::kOccurredDuringWrite, grpc_core::StatusIntProperty::ChannelConnectivityState, grpc_core::StatusIntProperty::kLbPolicyDrop
}
 This enum should have the same value of grpc_error_ints. More...
 
enum  grpc_core::StatusStrProperty {
  grpc_core::StatusStrProperty::kDescription, grpc_core::StatusStrProperty::kFile, grpc_core::StatusStrProperty::kOsError, grpc_core::StatusStrProperty::kSyscall,
  grpc_core::StatusStrProperty::kTargetAddress, grpc_core::StatusStrProperty::kGrpcMessage, grpc_core::StatusStrProperty::kRawBytes, grpc_core::StatusStrProperty::kTsiError,
  grpc_core::StatusStrProperty::kFilename, grpc_core::StatusStrProperty::kKey, grpc_core::StatusStrProperty::kValue
}
 This enum should have the same value of grpc_error_strs. More...
 
enum  grpc_core::StatusTimeProperty { grpc_core::StatusTimeProperty::kCreated }
 This enum should have the same value of grpc_error_times. More...
 

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)
 


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