Interface GrpcStatusFunction

All Known Subinterfaces:
GoogleGrpcStatusFunction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@UnstableApi @Deprecated @FunctionalInterface public interface GrpcStatusFunction
Deprecated.
A mapping function that converts a Throwable into a gRPC Status.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable io.grpc.Status
    apply(RequestContext ctx, Throwable throwable, io.grpc.Metadata metadata)
    Deprecated.
    Maps the specified Throwable to a gRPC Status, and mutates the specified Metadata.
  • Method Details

    • apply

      @Nullable @Nullable io.grpc.Status apply(RequestContext ctx, Throwable throwable, io.grpc.Metadata metadata)
      Deprecated.
      Maps the specified Throwable to a gRPC Status, and mutates the specified Metadata. If null is returned, the built-in mapping rule is used by default.