Interface GrpcStatusFunction

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

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

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

    • apply

      @Nullable @Nullable Status apply(com.linecorp.armeria.common.RequestContext ctx, Throwable throwable, Metadata metadata)
      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.