Class ExistingLuceneIndexMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.maven.index.context.ExistingLuceneIndexMismatchException
All Implemented Interfaces:
Serializable

public class ExistingLuceneIndexMismatchException extends IOException
Thrown when a user tries to create a NexusInder IndexingContext over and existing Lucene index, and there is a mismatch. The reason for mismatch may be multiple: non-NexusIndexer Lucene index (basically missing the descriptor document), index version is wrong or unknown, repositoryId from context and descriptor document does not matches, etc. This exception is not thrown in cases when "reclaim" is done, as in those cases, even if an unknown index is found, descriptor will be forcefully added with current context information, potentially replacing the existing descriptor, if any.
Since:
5.1.0
Author:
Tamas Cservenak
See Also:
  • Constructor Details

    • ExistingLuceneIndexMismatchException

      public ExistingLuceneIndexMismatchException(String message)