Package org.apache.lucene.index
Class IndexFormatTooOldException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.lucene.index.CorruptIndexException
-
- org.apache.lucene.index.IndexFormatTooOldException
-
- All Implemented Interfaces:
java.io.Serializable
public class IndexFormatTooOldException extends CorruptIndexException
This exception is thrown when Lucene detects an index that is too old for this Lucene version- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndexFormatTooOldException(java.lang.String resourceDesc, int version, int minVersion, int maxVersion)
Creates anIndexFormatTooOldException
.IndexFormatTooOldException(java.lang.String resourceDesc, java.lang.String version)
Creates anIndexFormatTooOldException
.IndexFormatTooOldException(DataInput in, int version, int minVersion, int maxVersion)
Creates anIndexFormatTooOldException
.IndexFormatTooOldException(DataInput in, java.lang.String version)
Creates anIndexFormatTooOldException
.
-
-
-
Constructor Detail
-
IndexFormatTooOldException
public IndexFormatTooOldException(java.lang.String resourceDesc, java.lang.String version)
Creates anIndexFormatTooOldException
.- Parameters:
resourceDesc
- describes the file that was too oldversion
- the version of the file that was too old
-
IndexFormatTooOldException
public IndexFormatTooOldException(DataInput in, java.lang.String version)
Creates anIndexFormatTooOldException
.- Parameters:
in
- the open file that's too oldversion
- the version of the file that was too old
-
IndexFormatTooOldException
public IndexFormatTooOldException(java.lang.String resourceDesc, int version, int minVersion, int maxVersion)
Creates anIndexFormatTooOldException
.- Parameters:
resourceDesc
- describes the file that was too oldversion
- the version of the file that was too oldminVersion
- the minimum version acceptedmaxVersion
- the maxium version accepted
-
IndexFormatTooOldException
public IndexFormatTooOldException(DataInput in, int version, int minVersion, int maxVersion)
Creates anIndexFormatTooOldException
.- Parameters:
in
- the open file that's too oldversion
- the version of the file that was too oldminVersion
- the minimum version acceptedmaxVersion
- the maxium version accepted
-
-