
Public Member Functions | |
| None | __init__ (self, grpc.StatusCode code, Metadata initial_metadata, Metadata trailing_metadata, Optional[str] details=None, Optional[str] debug_error_string=None) |
| str | __repr__ (self) |
| str | __str__ (self) |
| grpc.StatusCode | code (self) |
| str | debug_error_string (self) |
| Optional[str] | details (self) |
| Metadata | initial_metadata (self) |
| Metadata | trailing_metadata (self) |
Private Member Functions | |
| str | _repr (self) |
Private Attributes | |
| _code | |
| _debug_error_string | |
| _details | |
| _initial_metadata | |
| _trailing_metadata | |
An implementation of RpcError to be used by the asynchronous API. Raised RpcError is a snapshot of the final status of the RPC, values are determined. Hence, its methods no longer needs to be coroutines.
| None grpc.aio._call.AioRpcError.__init__ | ( | self, | |
| grpc.StatusCode | code, | ||
| Metadata | initial_metadata, | ||
| Metadata | trailing_metadata, | ||
| Optional[str] | details = None, |
||
| Optional[str] | debug_error_string = None |
||
| ) |
Constructor.
Args:
code: The status code with which the RPC has been finalized.
details: Optional details explaining the reason of the error.
initial_metadata: Optional initial metadata that could be sent by the
Server.
trailing_metadata: Optional metadata that could be sent by the Server.
|
private |
| grpc.StatusCode grpc.aio._call.AioRpcError.code | ( | self | ) |
| str grpc.aio._call.AioRpcError.debug_error_string | ( | self | ) |
| Optional[str] grpc.aio._call.AioRpcError.details | ( | self | ) |
| Metadata grpc.aio._call.AioRpcError.initial_metadata | ( | self | ) |
| Metadata grpc.aio._call.AioRpcError.trailing_metadata | ( | self | ) |