Class HandlerMethod


  • public class HandlerMethod
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static HandlerMethod create​(java.lang.Object target, java.lang.reflect.Method method)  
      java.lang.Class<? extends java.lang.Throwable> getExceptionType()  
      static java.util.Optional<java.lang.Class<? extends java.lang.Throwable>> getHandledException​(java.lang.reflect.Method method, boolean throwsException)  
      java.lang.reflect.Method getMethod()  
      java.lang.Object getTarget()  
      io.grpc.Status invoke​(java.lang.Throwable e, GRpcExceptionScope scope)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static HandlerMethod create​(java.lang.Object target,
                                           java.lang.reflect.Method method)
      • invoke

        public io.grpc.Status invoke​(java.lang.Throwable e,
                                     GRpcExceptionScope scope)
                              throws java.lang.reflect.InvocationTargetException,
                                     java.lang.IllegalAccessException
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • getHandledException

        public static java.util.Optional<java.lang.Class<? extends java.lang.Throwable>> getHandledException​(java.lang.reflect.Method method,
                                                                                                             boolean throwsException)
      • getTarget

        public java.lang.Object getTarget()
      • getMethod

        public java.lang.reflect.Method getMethod()
      • getExceptionType

        public java.lang.Class<? extends java.lang.Throwable> getExceptionType()