Class IndexFormatTooNewException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IndexFormatTooNewException
    extends java.io.IOException
    This exception is thrown when Lucene detects an index that is newer than this Lucene version.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexFormatTooNewException​(java.lang.String resourceDescription, int version, int minVersion, int maxVersion)
      Creates an IndexFormatTooNewException
      IndexFormatTooNewException​(DataInput in, int version, int minVersion, int maxVersion)
      Creates an IndexFormatTooNewException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMaxVersion()
      Returns the maximum version accepted
      int getMinVersion()
      Returns the minimum version accepted
      java.lang.String getResourceDescription()
      Returns a description of the file that was too new
      int getVersion()
      Returns the version of the file that was too new
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • resourceDescription

        private final java.lang.String resourceDescription
      • version

        private final int version
      • minVersion

        private final int minVersion
      • maxVersion

        private final int maxVersion
    • Constructor Detail

      • IndexFormatTooNewException

        public IndexFormatTooNewException​(java.lang.String resourceDescription,
                                          int version,
                                          int minVersion,
                                          int maxVersion)
        Creates an IndexFormatTooNewException
        Parameters:
        resourceDescription - describes the file that was too new
        version - the version of the file that was too new
        minVersion - the minimum version accepted
        maxVersion - the maximum version accepted
      • IndexFormatTooNewException

        public IndexFormatTooNewException​(DataInput in,
                                          int version,
                                          int minVersion,
                                          int maxVersion)
        Creates an IndexFormatTooNewException
        Parameters:
        in - the open file that's too new
        version - the version of the file that was too new
        minVersion - the minimum version accepted
        maxVersion - 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