error_details/

directory
v0.0.0-...-647162c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: Apache-2.0

README

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.

Directories

Path Synopsis
Binary client demonstrates how to handle error messages from a gRPC server.
Binary client demonstrates how to handle error messages from a gRPC server.
Binary server demonstrates how to provide error messages in gRPC responses.
Binary server demonstrates how to provide error messages in gRPC responses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL