Package org.dlese.dpc.index.writer
Class ErrorDocException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dlese.dpc.index.writer.ErrorDocException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionErrorDocException(String message, String errorDocType) Constructs anExceptionwith the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the names of the fields to be indexed as keywords.getKeywordFieldValue(String fieldName) Gets the value of the field to be indexed as a keyword.String[]Gets the names of the fields to be indexed as text.getTextFieldValue(String fieldName) Gets the value of the field to be indexed as text.voidputKeywordField(String fieldName, String keyword) Adds a field to be indexed as a keyword.voidputTextField(String fieldName, String text) Adds a field to be indexed as text.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ErrorDocException
Constructs anExceptionwith the specified detail message.- Parameters:
message- the detailed message.
-
-
Method Details
-
getErrorDocType
-
putKeywordField
Adds a field to be indexed as a keyword.- Parameters:
fieldName- The field namekeyword- The field content
-
getKeywordFieldNames
Gets the names of the fields to be indexed as keywords.- Returns:
- The keywordFieldNames value
-
getKeywordFieldValue
Gets the value of the field to be indexed as a keyword.- Parameters:
fieldName- The field name- Returns:
- The value, or null
-
putTextField
Adds a field to be indexed as text.- Parameters:
fieldName- The field nametext- The field value
-
getTextFieldNames
Gets the names of the fields to be indexed as text.- Returns:
- The field names
-
getTextFieldValue
Gets the value of the field to be indexed as text.- Parameters:
fieldName- The field name- Returns:
- The value
-