public <E extends Throwable> boolean isMethodMappedForException(Class<E> exception) {
        return extractExtendedThrowable(exception) != null;
    }
Lookup if a method is mapped to given exception.

@param exception exception to check
@param <E> type of exception
@return true if mapped to valid method
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/advice/GrpcExceptionHandlerMethodResolver.java