Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise a new ClientError instead of AioRpcError #48

Merged
merged 1 commit into from
May 17, 2024

Conversation

llucax
Copy link
Contributor

@llucax llucax commented May 16, 2024

We want to avoid exposing the underlying details of the client, so in the future we can change the libraries used to connect to the service, or even the protocol.

This also removes the re-building of the exceptions, which was pretty unnecessary and needed some type: ignores due to typing issues in grpcio.

We should probably create a separate error for timeouts in the future.

@llucax llucax requested review from a team as code owners May 16, 2024 13:22
@llucax llucax self-assigned this May 16, 2024
@llucax llucax added this to the v0.4.0 milestone May 16, 2024
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:client Affects the client code labels May 16, 2024
@llucax llucax added the type:enhancement New feature or enhancement visitble to users label May 16, 2024
We want to avoid exposing the underlying details of the client, so in
the future we can change the libraries used to connect to the service,
or even the protocol.

This also removes the re-building of the exceptions, which was pretty
unnecessary and needed some `type: ignore`s due to typing issues in
`grpcio`.

We should probably create a separate error for timeouts in the future.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax
Copy link
Contributor Author

llucax commented May 17, 2024

BTW, I plan to add more error classes, see #45, but I will do it after migrating to betterproto/grpclib, so I don't need to adapt all the new error classes to grpclib twice.

@llucax llucax added this pull request to the merge queue May 17, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 8f4238a May 17, 2024
14 checks passed
@llucax llucax deleted the client-error branch May 17, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:client Affects the client code part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests type:enhancement New feature or enhancement visitble to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants