private boolean methodThrowsException(Method method,Class<? extends Exception> exceptionType){
  for (  Class<?> thrownType : method.getExceptionTypes()) {
    if (exceptionType.isAssignableFrom(thrownType))     return true;
  }
  return false;
}

private boolean methodThrowsException ( Method method , Class < ? extends Exception > exceptionType ) { for ( Class < ? > thrownType : method . getExceptionTypes ( ) ) { if ( exceptionType . isAssignableFrom ( thrownType ) ) return true ; } return false ; }
returns whether the given method throws the specified exception type , including any subclasses of that type .
