kward 2002/06/10 18:23:49
Modified: java/scratchpad/src/org/apache/xindice/server/rpc/messages GetDocument.java Log: Modified missing parameter exceptions Revision Changes Path 1.5 +4 -4 xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/GetDocument.java Index: GetDocument.java =================================================================== RCS file: /home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/GetDocument.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- GetDocument.java 10 Jun 2002 02:06:30 -0000 1.4 +++ GetDocument.java 11 Jun 2002 01:23:49 -0000 1.5 @@ -76,18 +76,18 @@ 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) ); Document doc = col.getDocument( (String) message.get(NAME) ); if ( doc == null ) { - throw new Exception( "Document not found " + + throw new Exception( API_NAME + ": Document not found " + (String) message.get(NAME) ); }