module documentation

Undocumented

Function grpc_status_of_errors Undocumented
Function pb2_from_error Undocumented
Function pb2_from_status Extract namespace-local service errors from a direct rich status.
Function pbrpc_status_of_errors Undocumented
Function to_anypb Undocumented
Function trailing_metadata_of_errors Undocumented
Type Alias Metadata Undocumented
Class _Status Undocumented
Function _rich_status_from_call Undocumented
Function _status_code Undocumented
Constant _STATUS_DETAILS_KEY Undocumented
def grpc_status_of_errors(code: int, message: str, errors: ServiceErrorPb | Iterable[ServiceErrorPb]) -> Status: (source)

Undocumented

def pb2_from_error(err: RpcError) -> list[ServiceErrorPb]: (source)

Undocumented

def pb2_from_status(status: StatusPb, remove_from_details: bool = False) -> list[ServiceErrorPb]: (source)

Extract namespace-local service errors from a direct rich status.

def pbrpc_status_of_errors(code: int, message: str, errors: ServiceErrorPb | Iterable[ServiceErrorPb]) -> StatusPb: (source)

Undocumented

def to_anypb(err: ServiceErrorPb) -> AnyPb: (source)

Undocumented

def trailing_metadata_of_errors(errors: ServiceErrorPb | Iterable[ServiceErrorPb], status_code: int = 1, status_message: str = '') -> Metadata: (source)

Undocumented

Metadata = (source)

Undocumented

Value
tuple[tuple[str, str | bytes], ...]
def _rich_status_from_call(call: RpcError) -> StatusPb | None: (source)

Undocumented

def _status_code(code: int) -> StatusCode: (source)

Undocumented

_STATUS_DETAILS_KEY: str = (source)

Undocumented

Value
'grpc-status-details-bin'