Class ErrorDocException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dlese.dpc.index.writer.ErrorDocException
All Implemented Interfaces:
Serializable

public class ErrorDocException extends Exception
Exception that may be used to pass text and keywords to be written to the index by the ErrorFileIndexingWriter if an error occurs during indexing.
Author:
John Weatherley
See Also:
  • Constructor Details

    • ErrorDocException

      public ErrorDocException(String message, String errorDocType)
      Constructs an Exception with the specified detail message.
      Parameters:
      message - the detailed message.
  • Method Details

    • getErrorDocType

      public String getErrorDocType()
    • putKeywordField

      public void putKeywordField(String fieldName, String keyword)
      Adds a field to be indexed as a keyword.
      Parameters:
      fieldName - The field name
      keyword - The field content
    • getKeywordFieldNames

      public String[] getKeywordFieldNames()
      Gets the names of the fields to be indexed as keywords.
      Returns:
      The keywordFieldNames value
    • getKeywordFieldValue

      public String getKeywordFieldValue(String fieldName)
      Gets the value of the field to be indexed as a keyword.
      Parameters:
      fieldName - The field name
      Returns:
      The value, or null
    • putTextField

      public void putTextField(String fieldName, String text)
      Adds a field to be indexed as text.
      Parameters:
      fieldName - The field name
      text - The field value
    • getTextFieldNames

      public String[] getTextFieldNames()
      Gets the names of the fields to be indexed as text.
      Returns:
      The field names
    • getTextFieldValue

      public String getTextFieldValue(String fieldName)
      Gets the value of the field to be indexed as text.
      Parameters:
      fieldName - The field name
      Returns:
      The value