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