Package com.linecorp.armeria.common.grpc
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.
Deprecated.
A mapping function that converts a
Throwable
into a gRPC Status
.-
Method Summary
Modifier and TypeMethodDescription@Nullable io.grpc.Status
apply
(RequestContext ctx, Throwable throwable, io.grpc.Metadata metadata) Deprecated.
-
Method Details
-
apply
@Nullable @Nullable io.grpc.Status apply(RequestContext ctx, Throwable throwable, io.grpc.Metadata metadata) Deprecated.Maps the specifiedThrowable
to a gRPCStatus
, and mutates the specifiedMetadata
. Ifnull
is returned, the built-in mapping rule is used by default.
-
GrpcExceptionHandlerFunction
instead.