kward 2002/06/10 18:24:39
Modified: java/scratchpad/src/org/apache/xindice/server/rpc/messages
InsertDocument.java
Log:
Modified missing parameter exceptions
Revision Changes Path
1.5 +4 -4
xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/InsertDocument.java
Index: InsertDocument.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/InsertDocument.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- InsertDocument.java 10 Jun 2002 02:07:14 -0000 1.4
+++ InsertDocument.java 11 Jun 2002 01:24:39 -0000 1.5
@@ -75,15 +75,15 @@
public Hashtable execute(Hashtable message) throws Exception {
if(!message.containsKey(COLLECTION)) {
- throw new Exception("Collection parameter not specified");
+ throw new Exception(MISSING_COLLECTION_PARAM);
}
if(!message.containsKey(NAME)) {
- throw new Exception("Name parameter not specified");
+ throw new Exception(MISSING_NAME_PARAM);
}
if(!message.containsKey(DOCUMENT)) {
- throw new Exception("Document parameter not specified");
+ throw new Exception(MISSING_DOCUMENT_PARAM);
}
Collection col = getCollection((String) message.get(COLLECTION));