Package org.apache.lucene.index
Class IndexFormatTooNewException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.lucene.index.IndexFormatTooNewException
-
- All Implemented Interfaces:
java.io.Serializable
public class IndexFormatTooNewException extends java.io.IOExceptionThis exception is thrown when Lucene detects an index that is newer than this Lucene version.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intmaxVersionprivate intminVersionprivate java.lang.StringresourceDescriptionprivate intversion
-
Constructor Summary
Constructors Constructor Description IndexFormatTooNewException(java.lang.String resourceDescription, int version, int minVersion, int maxVersion)Creates anIndexFormatTooNewExceptionIndexFormatTooNewException(DataInput in, int version, int minVersion, int maxVersion)Creates anIndexFormatTooNewException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxVersion()Returns the maximum version acceptedintgetMinVersion()Returns the minimum version acceptedjava.lang.StringgetResourceDescription()Returns a description of the file that was too newintgetVersion()Returns the version of the file that was too new
-
-
-
Constructor Detail
-
IndexFormatTooNewException
public IndexFormatTooNewException(java.lang.String resourceDescription, int version, int minVersion, int maxVersion)Creates anIndexFormatTooNewException- Parameters:
resourceDescription- describes the file that was too newversion- the version of the file that was too newminVersion- the minimum version acceptedmaxVersion- the maximum version accepted
-
IndexFormatTooNewException
public IndexFormatTooNewException(DataInput in, int version, int minVersion, int maxVersion)
Creates anIndexFormatTooNewException- Parameters:
in- the open file that's too newversion- the version of the file that was too newminVersion- the minimum version acceptedmaxVersion- the maximum version accepted
-
-
Method Detail
-
getResourceDescription
public java.lang.String getResourceDescription()
Returns a description of the file that was too new
-
getVersion
public int getVersion()
Returns the version of the file that was too new
-
getMaxVersion
public int getMaxVersion()
Returns the maximum version accepted
-
getMinVersion
public int getMinVersion()
Returns the minimum version accepted
-
-