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

Improve gRPC Errors example #2282

Open
bondolo opened this issue Jul 19, 2022 · 0 comments
Open

Improve gRPC Errors example #2282

bondolo opened this issue Jul 19, 2022 · 0 comments
Labels
docs Improvements for documentation and examples

Comments

@bondolo
Copy link
Contributor

bondolo commented Jul 19, 2022

The gRPC Errors example could be improved by adding to the server source:

  • try { } catch (Exception all) { return failed(mapToGrpcStatusException(all)); } around endpoint.
  • Add GrpcExceptionMapperServiceFilter to GrpcServerBuilder for mapping errors returned by other filters.
@bondolo bondolo added the docs Improvements for documentation and examples label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements for documentation and examples
Projects
None yet
Development

No branches or pull requests

1 participant