Class 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 only
      CorruptIndexException​(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 only
      CorruptIndexException​(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 only
      CorruptIndexException​(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
      • 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

      • message

        private final java.lang.String message
      • resourceDescription

        private final java.lang.String resourceDescription
    • 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.
    • Method Detail

      • getResourceDescription

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

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