kward 2002/06/10 18:22:31
Modified: java/scratchpad/src/org/apache/xindice/server/rpc/messages CreateIndexer.java Log: Modified missing parameter exceptions Revision Changes Path 1.3 +4 -4 xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/CreateIndexer.java Index: CreateIndexer.java =================================================================== RCS file: /home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/CreateIndexer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CreateIndexer.java 10 Jun 2002 02:05:45 -0000 1.2 +++ CreateIndexer.java 11 Jun 2002 01:22:31 -0000 1.3 @@ -77,15 +77,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(PATTERN)) { - throw new Exception("Pattern parameter not specified"); + throw new Exception(MISSING_PATTERN_PARAM); } Document doc = new DocumentImpl();