Classes | Namespaces | Functions
status_util.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/status.h>
Include dependency graph for status_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  grpc_core::internal::StatusCodeSet
 A set of grpc_status_code values. More...
 

Namespaces

 grpc_core
 
 grpc_core::internal
 

Functions

bool grpc_status_code_from_int (int status_int, grpc_status_code *status)
 
bool grpc_status_code_from_string (const char *status_str, grpc_status_code *status)
 
const char * grpc_status_code_to_string (grpc_status_code status)
 Returns the string form of status, or "UNKNOWN" if invalid. More...
 

Function Documentation

◆ grpc_status_code_from_int()

bool grpc_status_code_from_int ( int  status_int,
grpc_status_code status 
)

Definition at line 103 of file status_util.cc.

◆ grpc_status_code_from_string()

bool grpc_status_code_from_string ( const char *  status_str,
grpc_status_code status 
)

If status_str is a valid status string, sets status to the corresponding status value and returns true.

Definition at line 51 of file status_util.cc.

◆ grpc_status_code_to_string()

const char* grpc_status_code_to_string ( grpc_status_code  status)

Returns the string form of status, or "UNKNOWN" if invalid.

Definition at line 62 of file status_util.cc.



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