kward 2002/06/10 18:26:18
Modified: java/scratchpad/src/org/apache/xindice/server/rpc/messages
RemoveDocument.java
Log:
Modified missing parameter exceptions
Revision Changes Path
1.3 +3 -3
xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/RemoveDocument.java
Index: RemoveDocument.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/RemoveDocument.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- RemoveDocument.java 10 Jun 2002 02:08:25 -0000 1.2
+++ RemoveDocument.java 11 Jun 2002 01:26:18 -0000 1.3
@@ -76,11 +76,11 @@
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);
}
Collection col = getCollection( (String) message.get(COLLECTION) );