Improve gRPC Errors example
Open
docs
- Dominant language
- Java
- Stars
- 1k
- Forks
- 229
- Avg merge
- 23h 23m
- Merged PRs (30d)
- 16
Description
The gRPC [Errors example](https://apple.github.io/servicetalk//servicetalk-examples/SNAPSHOT/grpc/index.html#errors) 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.
Contributor guide
Research direction
Start with the linked gRPC Errors example and locate its server source. Add the requested exception handling around the endpoint and configure GrpcExceptionMapperServiceFilter on GrpcServerBuilder; the example is complete when it demonstrates both error-mapping paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, java
- Domain
- backend-api-design, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100