Changeset 9815 for branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGRetrieve.java
- Timestamp:
- 2005-05-04T16:15:31+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGRetrieve.java
r9001 r9815 21 21 // Greenstone classes 22 22 import org.greenstone.mg.*; 23 import org.greenstone.gsdl3.core.GSException; 23 24 import org.greenstone.gsdl3.util.GSFile; 24 25 import org.greenstone.gsdl3.util.GSXML; … … 86 87 * <nodeContent>text content or other elements</nodeContent> 87 88 */ 88 protected Element getNodeContent(String doc_id) {89 protected Element getNodeContent(String doc_id) throws GSException { 89 90 90 91 if (GS3OID.isDocTop(doc_id) && database.isHierarchicalDocument(doc_id)) { … … 111 112 } catch (Exception e) { 112 113 System.out.println("exception happended with mg_src.getDocument()"); 113 doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n"; 114 throw new GSException("Couldn't get document content for id: "+ doc_int+"\n"+e.getMessage()); 115 //doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n"; 114 116 } 115 117
Note:
See TracChangeset
for help on using the changeset viewer.