Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a `ApiClientError` exception that is the base class for all client exceptions. This exception is raised when there is an error in the client. We also wrap all gRPC response errors in a `GrpcError` exception that is a subclass of `ApiClientError`, and add one subclass for each possible gRPC status code. This makes error handling more pythonic, as one can now just catch the exception type one is interested in, without having to do a second-level matching using the status. It also helps avoiding to expose the grpclib classes to the user.
- Loading branch information