Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Better error handling for assortment import
theli9104001e7c75
diff --git a/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.java b/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.javaindex 33b8a6be2..61804a32f 100644--- a/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.java+++ b/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.java@@ -38,7 +38,10 @@ public class plasmaWordIndexAssortmentImporter extends AbstractImporter implemenerrorMsg = "AssortmentFile '" + this.importAssortmentFile + "' is not readable.";else if (!this.importAssortmentFile.canWrite())errorMsg = "AssortmentFile '" + this.importAssortmentFile + "' is not writeable.";-+ if (errorMsg != null) {+ this.log.logSevere(errorMsg);+ throw new IllegalStateException(errorMsg);+ }// getting the assortment lengthFile importAssortmentPath = null;@@ -51,12 +54,9 @@ public class plasmaWordIndexAssortmentImporter extends AbstractImporter implemen}} catch (NumberFormatException e) {errorMsg = "Unable to parse the assortment file number.";- }-- if (errorMsg != null) {this.log.logSevere(errorMsg);throw new IllegalStateException(errorMsg);- }+ }// initializing the import assortment dbthis.log.logInfo("Initializing source assortment file");