Interface GoogleGrpcStatusFunction

All Superinterfaces:
GrpcStatusFunction

@Deprecated @UnstableApi public interface GoogleGrpcStatusFunction extends GrpcStatusFunction
Deprecated.
A GrpcStatusFunction that provides a way to include details of a status into a Metadata. You can implement a mapping function to convert Throwable into a Status which is stored in the `grpc-status-details-bin` key in the Metadata. If a given Throwable is an instance of either StatusRuntimeException or StatusException, the Status retrieved from the exception is returned with higher priority.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @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.
    @Nullable com.google.rpc.Status
    applyStatusProto(RequestContext ctx, Throwable throwable, io.grpc.Metadata metadata)
    Deprecated.
    Maps the specified Throwable to a Status, and mutates the specified Metadata.