grpc-go/examples/features/error_details
Arvind Bright 8320224ff0
.*: revive from unused_parameters (#7577)
2024-08-30 10:41:30 -07:00
..
client Update docs and examples and tests to use NewClient instead of Dial (#7068) 2024-04-19 10:55:23 -07:00
server .*: revive from unused_parameters (#7577) 2024-08-30 10:41:30 -07:00
README.md examples: add error_handling example; move errors to error_details (#6293) 2023-05-17 14:57:56 -07:00

README.md

Description

This example demonstrates the use of status details in grpc errors.

Run the sample code

Run the server:

$ go run ./server/main.go

Then run the client in another terminal:

$ go run ./client/main.go

It should succeed and print the greeting it received from the server. Then run the client again:

$ go run ./client/main.go

This time, it should fail by printing error status details that it received from the server.