authzed-py icon indicating copy to clipboard operation
authzed-py copied to clipboard

Wrap gRPC Exceptions

Open jzelinskie opened this issue 4 years ago • 1 comments

Depending on whether or not the client is async, it returns entirely different exception types: RpcError and AioRpcError respectively.

The grpcutil module should have an exception type that can be used to catch both of these and handle them equivalently.

jzelinskie avatar Jul 17 '21 15:07 jzelinskie

Just leaving a comment that with the new SyncClient and AsyncClient it might be okay to just leave the exceptions as different. My guess is most clients will be one or the other and not mixing behavior

intentionally-left-nil avatar May 03 '24 18:05 intentionally-left-nil