Package org.apache.lucene.index
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CorruptIndexException(String message, String resourceDescription)
Create exception with a message onlyCorruptIndexException(String message, String resourceDescription, Throwable cause)
Create exception with message and root cause.CorruptIndexException(String message, DataInput input)
Create exception with a message onlyCorruptIndexException(String message, DataInput input, Throwable cause)
Create exception with message and root cause.CorruptIndexException(String message, DataOutput output)
Create exception with a message onlyCorruptIndexException(String message, DataOutput output, Throwable cause)
Create exception with message and root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOriginalMessage()
Returns the original exception message without the corrupted file description.String
getResourceDescription()
Returns a description of the file that was corrupted-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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
-
-