code: public static <T extends MethodDescription> ElementMatcher.Junction<T> declaresGenericException(
              ElementMatcher<? super Iterable<? extends TypeDescription.Generic>> matcher) {
          return new MethodExceptionTypeMatcher<T>(matcher);
      }
docs: Matches a method's generic exception types against the provided matcher.
  
  @param matcher The exception matcher to apply onto the matched method's generic exceptions.
  @param <T>     The type of the matched object.
  @return A matcher that applies the provided matcher to a method's generic exception types.