public class ConverterErrorEvent extends ConverterEvent
ConverterListener
encounters an error when converting a document.Constructor and Description |
---|
ConverterErrorEvent(Object source,
ConverterJobInfoEvent jobInfo,
String errorMessage,
int inputDocumentIndex,
Exception cause) |
Modifier and Type | Method and Description |
---|---|
Exception |
getCause()
Returns exception raised by the error.
|
String |
getErrorMessage()
Returns information about the error.
|
int |
getInputDocumentIndex()
Returns index of the current document that was being converted.
|
boolean |
isRethrowError()
Returns whether exceptions encountered by the
DocumentConverter
need to be re-thrown. |
void |
setRethrowError(boolean rethrowError)
Specifies whether exceptions encountered by the
DocumentConverter
need to be raised by the user class instance. |
getJobInfo, isCancel, setCancel
getSource, toString
public ConverterErrorEvent(Object source, ConverterJobInfoEvent jobInfo, String errorMessage, int inputDocumentIndex, Exception cause)
public String getErrorMessage()
public int getInputDocumentIndex()
public Exception getCause()
public boolean isRethrowError()
DocumentConverter
need to be re-thrown. By default, this is false.public void setRethrowError(boolean rethrowError)
DocumentConverter
need to be raised by the user class instance.rethrowError
- true if the exceptions need to be raised; false if otherwise