Class CorruptIndexException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.lucene.index.CorruptIndexException
All Implemented Interfaces:
Serializable

public class CorruptIndexException extends IOException
This exception is thrown when Lucene detects an inconsistency in the index.
See Also:
  • Constructor Details

    • CorruptIndexException

      public CorruptIndexException(String message, DataInput input)
      Create exception with a message only
    • CorruptIndexException

      public CorruptIndexException(String message, DataOutput output)
      Create exception with a message only
    • CorruptIndexException

      public CorruptIndexException(String message, DataInput input, Throwable cause)
      Create exception with message and root cause.
    • CorruptIndexException

      public CorruptIndexException(String message, DataOutput output, Throwable cause)
      Create exception with message and root cause.
    • CorruptIndexException

      public CorruptIndexException(String message, String resourceDescription)
      Create exception with a message only
    • CorruptIndexException

      public CorruptIndexException(String message, String resourceDescription, Throwable cause)
      Create exception with message and root cause.
  • Method Details

    • getResourceDescription

      public String getResourceDescription()
      Returns a description of the file that was corrupted
    • getOriginalMessage

      public String getOriginalMessage()
      Returns the original exception message without the corrupted file description.