Class ExceptionInterceptor

java.lang.Object
io.quarkus.grpc.runtime.supports.exc.ExceptionInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor, jakarta.enterprise.inject.spi.Prioritized

@ApplicationScoped public class ExceptionInterceptor extends Object implements io.grpc.ServerInterceptor, jakarta.enterprise.inject.spi.Prioritized
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) io.quarkus.grpc.ExceptionHandlerProvider
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    <ReqT, RespT>
    io.grpc.ServerCall.Listener<ReqT>
    interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • provider

      @Inject io.quarkus.grpc.ExceptionHandlerProvider provider
  • Constructor Details

    • ExceptionInterceptor

      public ExceptionInterceptor()
  • Method Details

    • interceptCall

      public <ReqT, RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
      Specified by:
      interceptCall in interface io.grpc.ServerInterceptor
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface jakarta.enterprise.inject.spi.Prioritized