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:
java.io.Serializable
public class CorruptIndexException extends java.io.IOException
This exception is thrown when Lucene detects an inconsistency in the index.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
message
private java.lang.String
resourceDescription
-
Constructor Summary
Constructors Constructor Description CorruptIndexException(java.lang.String message, java.lang.String resourceDescription)
Create exception with a message onlyCorruptIndexException(java.lang.String message, java.lang.String resourceDescription, java.lang.Throwable cause)
Create exception with message and root cause.CorruptIndexException(java.lang.String message, DataInput input)
Create exception with a message onlyCorruptIndexException(java.lang.String message, DataInput input, java.lang.Throwable cause)
Create exception with message and root cause.CorruptIndexException(java.lang.String message, DataOutput output)
Create exception with a message onlyCorruptIndexException(java.lang.String message, DataOutput output, java.lang.Throwable cause)
Create exception with message and root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOriginalMessage()
Returns the original exception message without the corrupted file description.java.lang.String
getResourceDescription()
Returns a description of the file that was corrupted
-
-
-
Constructor Detail
-
CorruptIndexException
public CorruptIndexException(java.lang.String message, DataInput input)
Create exception with a message only
-
CorruptIndexException
public CorruptIndexException(java.lang.String message, DataOutput output)
Create exception with a message only
-
CorruptIndexException
public CorruptIndexException(java.lang.String message, DataInput input, java.lang.Throwable cause)
Create exception with message and root cause.
-
CorruptIndexException
public CorruptIndexException(java.lang.String message, DataOutput output, java.lang.Throwable cause)
Create exception with message and root cause.
-
CorruptIndexException
public CorruptIndexException(java.lang.String message, java.lang.String resourceDescription)
Create exception with a message only
-
CorruptIndexException
public CorruptIndexException(java.lang.String message, java.lang.String resourceDescription, java.lang.Throwable cause)
Create exception with message and root cause.
-
-