Error handling: fix description (#211)

This commit is contained in:
Patrice Chalin 2020-04-23 17:58:50 -04:00 committed by GitHub
parent ed3773a73d
commit 2750f043db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,7 @@
--- ---
layout: guides layout: guides
title: Error Handling title: Error Handling
description: | description: How gRPC deals with errors, and gRPC error codes.
This page describes how gRPC deals with errors, including gRPC's built-in error codes. Example code in different languages can be found [here](https://github.com/avinassh/grpc-errors).
--- ---
### Standard error model ### Standard error model
@ -106,3 +105,10 @@ Unauthenticated: credentials failed to get metadata | `GRPC_STATUS_UNAUTHENTICAT
Invalid host set in authority metadata | `GRPC_STATUS_UNAUTHENTICATED` Invalid host set in authority metadata | `GRPC_STATUS_UNAUTHENTICATED`
Error parsing response protocol buffer | `GRPC_STATUS_INTERNAL` Error parsing response protocol buffer | `GRPC_STATUS_INTERNAL`
Error parsing request protocol buffer | `GRPC_STATUS_INTERNAL` Error parsing request protocol buffer | `GRPC_STATUS_INTERNAL`
### Sample code
For sample code illustrating how to handle various gRPC errors, see the
[grpc-errors][] repo.
[grpc-errors]: https://github.com/avinassh/grpc-errors