private Class<?> makeClass(String className, boolean proceedOnExceptions)
    throws ClassNotFoundException, LinkageError {
    try {
      Class<?> c = Class.forName(className, false, classLoader);
      boolean isCandidateClass = null == classFilter || classFilter.isCandidateClass(c);
      return isCandidateClass ? c : null;
    } catch (ClassNotFoundException | LinkageError exception) {
      if (!proceedOnExceptions) {
        throw exception;
      }
      LOG.debug("Failed to instantiate or check " + className + ": " + exception);
    }
    return null;
  }
Finds the classes in a package and nested packages.
@param packageName         package names
@param proceedOnExceptions whether to ignore exceptions encountered for individual
                           jars/files/classes, and proceed looking for others.
hbase-common/src/test/java/org/apache/hadoop/hbase/ClassFinder.java