View Javadoc

1   package org.apache.maven.index.context;
2   
3   import org.apache.maven.index.Indexer;
4   import org.apache.maven.index.NexusIndexer;
5   
6   /*
7    * Licensed to the Apache Software Foundation (ASF) under one
8    * or more contributor license agreements.  See the NOTICE file
9    * distributed with this work for additional information
10   * regarding copyright ownership.  The ASF licenses this file
11   * to you under the Apache License, Version 2.0 (the
12   * "License"); you may not use this file except in compliance
13   * with the License.  You may obtain a copy of the License at
14   *
15   *   http://www.apache.org/licenses/LICENSE-2.0    
16   *
17   * Unless required by applicable law or agreed to in writing,
18   * software distributed under the License is distributed on an
19   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20   * KIND, either express or implied.  See the License for the
21   * specific language governing permissions and limitations
22   * under the License.
23   */
24  
25  /**
26   * Thrown when a user tries to create a NexusInder IndexingContext over and existing Lucene index. The reason for
27   * throwing this exception may be multiple: non-NexusIndexer Lucene index, index version is wrong, repositoryId does not
28   * matches the context repositoryId, etc.
29   * 
30   * @author Tamas Cservenak
31   * @deprecated The deprecated {@link NexusIndexer} uses this exception. Use {@link Indexer} instead.
32   */
33  public class UnsupportedExistingLuceneIndexException
34      extends Exception
35  {
36      private static final long serialVersionUID = -3206758653346308322L;
37  
38      public UnsupportedExistingLuceneIndexException( String message )
39      {
40          super( message );
41      }
42  
43      public UnsupportedExistingLuceneIndexException( String message, ExistingLuceneIndexMismatchException e )
44      {
45          super( message, e );
46      }
47  }