|
před 3 týdny | |
---|---|---|
.. | ||
README.md | před 3 týdny | |
error_examples_client.rb | před 3 týdny | |
error_examples_server.rb | před 3 týdny |
The examples in this directory show use of grpc errors.
On the server side, errors are returned from service
implementations by raising a certain GRPC::BadStatus
exception.
On the client side, GRPC errors get raised when either:
Enumerable
is iterated through (server-streaming and
bidi call types).Start the server:
> ruby error_examples_server.rb
Then run the client:
> ruby error_examples_client.rb