Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avinassh/grpc-errors
A handy guide to gRPC errors
https://github.com/avinassh/grpc-errors
Last synced: 3 days ago
JSON representation
A handy guide to gRPC errors
- Host: GitHub
- URL: https://github.com/avinassh/grpc-errors
- Owner: avinassh
- License: mit
- Created: 2017-03-29T08:33:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T21:57:26.000Z (over 1 year ago)
- Last Synced: 2024-10-12T08:44:15.461Z (4 months ago)
- Language: C#
- Homepage: http://avi.im/grpc-errors
- Size: 602 KB
- Stars: 581
- Watchers: 8
- Forks: 78
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-grpc - grpc-errors - Code examples in each language on how to return and handle error statuses. (Documentation)
README
# gRPC Errors - A handy guide to gRPC errors.
This repository contains code examples in different languages which demonstrate handling errors in gRPC.
Check the [`hello.proto`](hello.proto) file to see the gRPC method definitions. It has two methods `SayHello` and `SayHelloStrict`:
func SayHello(name) {
return "Hey, (name)!"
}`SayHelloStrict` is similar, but throws an error if the length of name is more than 10 characters.
Each language directories have instructions to generate gRPC methods in respective languages. I assume that you have done the basic [tutorials](http://www.grpc.io/docs/quickstart/).
## Guide
Check this page for quick guide and examples of all languages - [gRPC Errors](http://avi.im/grpc-errors)
## System Requirements
- [gRPC](https://github.com/grpc/grpc/blob/master/INSTALL.md)
- [protobuf compiler](https://github.com/google/protobuf)## License
The mighty MIT license. Please check `LICENSE` for more details.