IndexNotFoundException (Lucene 10.5.0 core API)
Description: declaration: package: org.apache.lucene.index, class: IndexNotFoundException

Package org.apache.lucene.index

# Class IndexNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.FileNotFoundException
org.apache.lucene.index.IndexNotFoundException

All Implemented Interfaces:
  `Serializable`

public final class IndexNotFoundException extends FileNotFoundException
Signals that no index was found in the Directory. Possibly because the directory is empty, however can also indicate an index corruption.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IndexNotFoundException(String msg)`
  Creates IndexFileNotFoundException with the description message.

- ## Method Summary

  ### 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`

- ## Constructor Details

  - ### IndexNotFoundException

    public IndexNotFoundException(String msg)
    Creates IndexFileNotFoundException with the description message.