Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/search Query.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/search Query.java

Author stack
Full name Michael Stack
Date 2000-11-06 11:31:51 PST
Message User: stack
  Date: 00/11/06 11:31:51

  Modified: java/org/joist/search Query.java
  Log:
  Make a clearer error message for case where search index has not been built yet
  
  Revision Changes Path
  1.4 +4 -4 joist/java/org/joist​/search/Query.java
  
  Index: Query.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/search/Query.j​ava,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Query.java 2000/10/25 20:31:17 1.3
  +++ Query.java 2000/11/06 19:31:51 1.4
  @@ -60,14 +60,14 @@
   * paging through returned results.
   *
   * @author <a href="mailto:stack@c​ollab.net">St.Ack​</a>
  -* @version $Id: Query.java,v 1.3 2000/10/25 20:31:17 stack Exp $
  +* @version $Id: Query.java,v 1.4 2000/11/06 19:31:51 stack Exp $
   */
   public class Query
   {
       /** Class version string
       */
       public static final String versionID
  - = "$Id: Query.java,v 1.3 2000/10/25 20:31:17 stack Exp $";
  + = "$Id: Query.java,v 1.4 2000/11/06 19:31:51 stack Exp $";
       
       
       /** Number of search result items to return per query.
  @@ -135,7 +135,7 @@
               throw new NullPointerException( "inSearchIndex is null or empty" );
           java.io.File fileIndex = new java.io.File( inSearchIndex );
           if( !fileIndex.exists( ) )
  - throw new java.io.FileNotFoundException( "inSearchIndex at location <"
  + throw new java.io.FileNotFoundException( "Search index &lt;"
                   + inSearchIndex
                   + "> does not exist" );
           searchIndex = inSearchIndex;
  @@ -144,7 +144,7 @@
           //
           if( ( inResultsPerQuery < 0 )
               || ( inResultsPerQuery > QUERY_RESULTS_UPPER_LIMIT ) )
  - throw new IndexOutOfBoundsException( "inResultsPerQuery <"
  + throw new IndexOutOfBoundsException( "Results-per-query <"
                   + Integer.toString( inResultsPerQuery )
                   + "> is negative or greater than our upper-bound limit, "
                   + Integer.toString( QUERY_RESULTS_UPPER_LIMIT ) );

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/search Query.java stack Michael Stack 2000-11-06 11:31:51 PST
Messages per page: