Package com.linecorp.armeria.server.grpc
Interface UnframedGrpcStatusMappingFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ServiceRequestContext ctx, Status status, @Nullable Throwable cause) of()
Return the default mapping function which follows the mapping rules defined in upstream Google APIs code.proto.Returns a composedUnframedGrpcStatusMappingFunction
that appliesthis
first and the specifiedother
later ifthis
returnsnull
.
-
Method Details
-
of
Return the default mapping function which follows the mapping rules defined in upstream Google APIs code.proto. -
apply
@Nullable @Nullable HttpStatus apply(ServiceRequestContext ctx, Status status, @Nullable @Nullable Throwable cause) -
orElse
Returns a composedUnframedGrpcStatusMappingFunction
that appliesthis
first and the specifiedother
later ifthis
returnsnull
.
-