module documentation

Undocumented

Function grpc_status_of_errors Undocumented
Function pb2_from_error Undocumented
Function pb2_from_status Undocumented
Function pbrpc_status_of_errors Undocumented
Function to_anypb Undocumented
Function trailing_metadata_of_errors Undocumented
Type Alias Metadata 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)

Undocumented

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], ...]