code: private Set<JavaClass> getAnnotatedRollbackExceptions(Method method) throws ClassNotFoundException {
  
          for (AnnotationEntry annotation : method.getAnnotationEntries()) {
              if ("Lorg/springframework/transaction/annotation/Transactional;".equals(annotation.getAnnotationType())) {
                  if (annotation.getNumElementValuePairs() == 0) {
                      return Collections.<JavaClass> emptySet();
                  }
                  Set<JavaClass> rollbackExceptions = new HashSet<>();
                  for (ElementValuePair pair : annotation.getElementValuePairs()) {
                      if ("rollbackFor".equals(pair.getNameString()) || "noRollbackFor".equals(pair.getNameString())) {
  
                          String exNames = pair.getValue().stringifyValue();
                          Matcher m = annotationClassPattern.matcher(exNames);
                          while (m.find()) {
                              String exName = m.group(1);
                              JavaClass exCls = Repository.lookupClass(SignatureUtils.trimSignature(exName));
                              if (!exCls.instanceOf(runtimeExceptionClass)) {
                                  rollbackExceptions.add(exCls);
                              }
                          }
                      }
                  }
                  return rollbackExceptions;
              }
          }
  
          return Collections.<JavaClass> emptySet();
      }
docs: parses an spring-tx @Transactional annotations for rollbackFor/noRollbackfor attributes of a @Transactional annotation.
  
  @param method
  the currently parsed method
  
  @return the exception classes declared in the @Transactional annotation
  
  @throws ClassNotFoundException
  if exception classes are not found