Skip to content

Improve gRPC Errors example #2282

@bondolo

Description

@bondolo

The gRPC Errors example could be improved by adding to the server source:

  • try { } catch (Exception all) { return failed(mapToGrpcStatusException(all)); } around endpoint.
  • Add GrpcExceptionMapperServiceFilter to GrpcServerBuilder for mapping errors returned by other filters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements for documentation and examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions