Classes | Functions | Variables
grpc_status.rpc_status Namespace Reference

Classes

class  _Status
 

Functions

def from_call (call)
 
def to_status (status)
 

Variables

list __all__
 

Function Documentation

◆ from_call()

def grpc_status.rpc_status.from_call (   call)
Returns a google.rpc.status.Status message corresponding to a given grpc.Call.

This is an EXPERIMENTAL API.

Args:
  call: A grpc.Call instance.

Returns:
  A google.rpc.status.Status message representing the status of the RPC.

Raises:
  ValueError: If the gRPC call's code or details are inconsistent with the
    status code and message inside of the google.rpc.status.Status.

Definition at line 33 of file rpc_status.py.

◆ to_status()

def grpc_status.rpc_status.to_status (   status)
Convert a google.rpc.status.Status message to grpc.Status.

This is an EXPERIMENTAL API.

Args:
  status: a google.rpc.status.Status message representing the non-OK status
    to terminate the RPC with and communicate it to the client.

Returns:
  A grpc.Status instance representing the input google.rpc.status.Status message.

Definition at line 65 of file rpc_status.py.

Variable Documentation

◆ __all__

list grpc_status.rpc_status.__all__
private
Initial value:
1 = [
2  'from_call',
3  'to_status',
4 ]

Definition at line 83 of file rpc_status.py.



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