// 3. something was wrong, but the index has been successfully cleaned
}
- if(!searcher.checkState(State.NONE))
- throw new IndexException("Illegal searcher state, contact application support.");
-
+ searcher.assertState(State.NONE);
+
// We loop until the index is loaded
while(true) {
if(!loaded) {
if(!searcher.checkState(State.NONE))
- throw new DatabaseException("Illegal searcher state, contact application support.");
+ throw new DatabaseException("Illegal searcher state " + searcher.state());
try {
SerialisationSupport ss = graph.getService(SerialisationSupport.class);
}
if(!success)
- throw new IndexException("Did not manage to load index. Contact application support.");
+ throw new IndexException("Did not manage to load index.");
// Try again
if (searcher.isIndexAvailable()) {
searcher.startAccess(progress.newChild(50), processor.getSession(), false);
if(searcher.hasAccess(false)) return lock;
- throw new IndexException("Illegal searcher state, contact application support.");
+ throw new IndexException("Illegal searcher state " + searcher.state());
}
}