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/AbstractGS2DocumentRetrieve.java

    r9529 r9815  
    2020
    2121// Greenstone classes
     22import org.greenstone.gsdl3.core.GSException;
    2223import org.greenstone.gsdl3.util.GSXML;
    2324import org.greenstone.gsdl3.util.GSFile;
     
    146147    // assumes only one value per metadata
    147148    protected Element getMetadataList(String node_id, boolean all_metadata,
    148                       ArrayList metadata_names) {
     149                      ArrayList metadata_names) 
     150    throws GSException {
    149151    Element metadata_list = this.doc.createElement(GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER);
    150152    DBInfo info = this.gdbm_src.getInfo(node_id);
     
    281283     * <nodeContent>text content or other elements</nodeContent>
    282284     */
    283     abstract protected Element getNodeContent(String doc_id);
     285    abstract protected Element getNodeContent(String doc_id) throws GSException;
    284286
    285287    protected String getMetadata(String node_id, DBInfo info,
Note: See TracChangeset for help on using the changeset viewer.