Ignore:
Timestamp:
2005-05-04T16:15:31+12:00 (19 years ago)
Author:
kjdon
Message:

some methods from documentretrieve classes now throw GSExceptions. am trying to make it so that no Exceptions get to the user interface. returning a lot more error elements too, in the hope that they may be useful for other people

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractMGSearch.java

    r9280 r9815  
    201201    this.mg_src.runQuery(basedir, textdir, query);
    202202    MGQueryResult mqr = this.mg_src.getQueryResult();
     203    if (mqr.isClear()) {
     204        // something has gone wrong
     205        GSXML.addError(this.doc, result, "Couldn't query the mg database", GSXML.ERROR_TYPE_SYSTEM);
     206        return result;
     207    }
    203208    long totalDocs = mqr.getTotalDocs();
    204209
Note: See TracChangeset for help on using the changeset viewer.