Examples of ExtractorSourceLevelMajorException


Examples of com.ikanow.infinit.e.data_model.InfiniteEnums.ExtractorSourceLevelMajorException

      {
        // Local file: => must be admin to continue
        if (harvestSecureMode) { // secure mode, must be admin
          if (source.getUrl().startsWith("file:")) {
            if (!AuthUtils.isAdmin(source.getOwnerId())) {
              throw new ExtractorSourceLevelMajorException("Permission denied");
            }
          }
        }//TODO (INF-2119): come up with something better than this...(this is at least consistent with SAH/UAH security, apart from allowing admin more rights)
        file = InfiniteFile.create(source.getUrl());
      }
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.InfiniteEnums.ExtractorSourceLevelMajorException

    try {
      if ((error_on_feed_count == feed_count) && (feed_count > 5))
      {
        String errorMsg = new StringBuffer().append(feed_count).append(" docs, ").append(error_on_feed_count).append(", errors").toString();
        if (error_on_feed_count > 20) {
          throw new ExtractorSourceLevelMajorException(errorMsg);
        }
        else {
          throw new ExtractorSourceLevelException(errorMsg);
        }//TESTED (copy/paste from legacy HarvestController.extractTextAndEntities)
      }
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.InfiniteEnums.ExtractorSourceLevelMajorException

      //NOTE: this is duplicated in HarvestControllerPipeline for non-legacy cases
      if ((error_on_feed_count == feed_count) && (feed_count > 5))
      {
        String errorMsg = new StringBuffer().append(feed_count).append(" docs, ").append(error_on_feed_count).append(", errors").toString();
        if (error_on_feed_count > 20) {
          throw new ExtractorSourceLevelMajorException(errorMsg);
        }
        else {
          throw new ExtractorSourceLevelException(errorMsg);
        }//TESTED
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.