kward 2002/06/10 18:25:45
Modified: java/scratchpad/src/org/apache/xindice/server/rpc/messages
Query.java
Log:
Modified missing parameter exceptions
Revision Changes Path
1.4 +4 -4
xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/Query.java
Index: Query.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/Query.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Query.java 10 Jun 2002 02:07:57 -0000 1.3
+++ Query.java 11 Jun 2002 01:25:45 -0000 1.4
@@ -81,15 +81,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(TYPE)) {
- throw new Exception("Type parameter not specified");
+ throw new Exception(MISSING_TYPE_PARAM);
}
if(!message.containsKey(QUERY)) {
- throw new Exception("Query parameter not specified");
+ throw new Exception(MISSING_QUERY_PARAM);
}
Collection col = getCollection( (String) message.get(COLLECTION) );