DataProcessingException is an error thrown during the processing of a record successfully parsed.
This type of error usually indicates that the input text has been parsed correctly, but the subsequent
transformations applied over the input (generally via a RowProcessor} failed.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private Object[] | |
| private static final long | |
| private Object | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | DataProcessingException(String
the error message message)Creates a new exception with an error message only. |
| public | DataProcessingException(String
the error message message, Throwable the cause of the error cause)Creates a new exception with an error message and error cause |
| public | DataProcessingException(String
the error message message, Object[] the row that could not be processed. row)Creates a new exception with an error message and the row that could not be processed. |
| public | DataProcessingException(String
the error message message, Object[] the row that could not be processed. row, Throwable the cause of the error cause)Creates a new exception with an error message, the row that could not be processed, and the error cause. |
| public | DataProcessingException(String
the error message message, int index of the column that could not be processed. columnIndex)Creates a new exception with an error message and the column that could not be processed. |
| public | DataProcessingException(String
the error message message, int index of the column that could not be processed. columnIndex, Object[] the row that could not be processed. row, Throwable the cause of the error cause)Creates a new exception with an error message, the column that could not be processed the row that could not be processed, and the error cause. |
| Modifier and Type | Method and Description |
|---|---|
| public final int | Returns: the index of the column from where the error occurred.Overrides com. |
| public String | Returns: the name of the column from where the error occurred.Returns the name of the column from where the error occurred, if available. |
| protected String | getDetails()
Overrides com. |
| protected String | getErrorDescription()
Overrides com. |
| private int | |
| public final Object[] | Returns: the record being processed when error occurred, if available.Returns the record being processed when the error occurred, if available. |
| public final Object | Returns: the value being processed when the error occurred, if available.Returns the value being processed when the error occurred, if available. |
| pack-priv final boolean | Returns: a flag indicating whether this error is fatal and the process must stop as it is impossible to proceed.Returns a flag indicating whether this error is fatal and the process must stop as it is impossible to proceed. |
| public boolean | Returns: true if this exception has been handled to a user-provided ProcessorErrorHandler,
otherwise falseReturns a flag indicating this exception has been handled by a user-provided |
| public final void | markAsHandled(ProcessorErrorHandler<T extends Context>
the handler)ProcessorErrorHandler used to handle this exception.Marks the error as handled so it doesn't trigger a |
| public final void | |
| public final void | setColumnIndex(int
the column index being processed when error occurred. columnIndex)Defines the column index being processed when the error occurred. |
| public final void | setColumnName(String
the name of the column being processed when error occurred. columnName)Defines the name of the column being processed when the error occurred. |
| public void | |
| public final void | |
| public final void | |
| public final void | setValue(String
a label in the exception message - any string enclosed by curly braces. label, Object the value being processed when error occurred, that should be replaced by the label in the exception message. value)Associates a label in the exception message (idenfied in curly braces) with a value being processed when the error occurred. |
| protected final String | updateMessage(String
the original message msg)Overrides com. |
| columnIndex | back to summary |
|---|---|
| private int columnIndex Hides com. | |
| columnName | back to summary |
|---|---|
| private String columnName | |
| details | back to summary |
|---|---|
| private String details | |
| fatal | back to summary |
|---|---|
| private boolean fatal | |
| handled | back to summary |
|---|---|
| private boolean handled | |
| row | back to summary |
|---|---|
| private Object[] row | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| value | back to summary |
|---|---|
| private Object value | |
| values | back to summary |
|---|---|
| private Map<String, Object> values | |
| DataProcessingException | back to summary |
|---|---|
| public DataProcessingException(String message) Creates a new exception with an error message only.
| |
| DataProcessingException | back to summary |
|---|---|
| public DataProcessingException(String message, Throwable cause) Creates a new exception with an error message and error cause | |
| DataProcessingException | back to summary |
|---|---|
| public DataProcessingException(String message, Object[] row) Creates a new exception with an error message and the row that could not be processed. | |
| DataProcessingException | back to summary |
|---|---|
| public DataProcessingException(String message, Object[] row, Throwable cause) Creates a new exception with an error message, the row that could not be processed, and the error cause. | |
| DataProcessingException | back to summary |
|---|---|
| public DataProcessingException(String message, int columnIndex) Creates a new exception with an error message and the column that could not be processed.
| |
| DataProcessingException | back to summary |
|---|---|
| public DataProcessingException(String message, int columnIndex, Object[] row, Throwable cause) Creates a new exception with an error message, the column that could not be processed the row that could not be processed, and the error cause. | |
| getColumnIndex | back to summary |
|---|---|
| public final int getColumnIndex() Overrides com. Returns the index of the column from where the error occurred, if available.
| |
| getColumnName | back to summary |
|---|---|
| public String getColumnName() Returns the name of the column from where the error occurred, if available.
| |
| getDetails | back to summary |
|---|---|
| protected String getDetails() Overrides com. Doc from com. Subclasses must implement this method to return as much information as possible about the internal state of the parser/writer.
Use | |
| getErrorDescription | back to summary |
|---|---|
| protected String getErrorDescription() Overrides com. Doc from com. Returns a generic description of the error. The result of this method is used by | |
| getExtractedColumnIndex | back to summary |
|---|---|
| private int getExtractedColumnIndex() | |
| getRow | back to summary |
|---|---|
| public final Object[] getRow() Returns the record being processed when the error occurred, if available.
| |
| getValue | back to summary |
|---|---|
| public final Object getValue() Returns the value being processed when the error occurred, if available.
| |
| isFatal | back to summary |
|---|---|
| pack-priv final boolean isFatal() Returns a flag indicating whether this error is fatal and the process must stop as it is impossible to proceed.
| |
| isHandled | back to summary |
|---|---|
| public boolean isHandled() Returns a flag indicating this exception has been handled by a user-provided
| |
| markAsHandled | back to summary |
|---|---|
| public final void markAsHandled(ProcessorErrorHandler<T extends Context> handler) Marks the error as handled so it doesn't trigger a
| |
| markAsNonFatal | back to summary |
|---|---|
| public final void markAsNonFatal() Marks the error as non fatal and the parsing process might proceed. | |
| setColumnIndex | back to summary |
|---|---|
| public final void setColumnIndex(int columnIndex) Defines the column index being processed when the error occurred.
| |
| setColumnName | back to summary |
|---|---|
| public final void setColumnName(String columnName) Defines the name of the column being processed when the error occurred.
| |
| setDetails | back to summary |
|---|---|
| public void setDetails(String details) | |
| setRow | back to summary |
|---|---|
| public final void setRow(Object[] row) Updates the exception with the record being processed when the error occurred.
| |
| setValue | back to summary |
|---|---|
| public final void setValue(Object value) Defines the value being processed when the error occurred.
| |
| setValue | back to summary |
|---|---|
| public final void setValue(String label, Object value) Associates a label in the exception message (idenfied in curly braces) with a value being processed when the error occurred. Used for formatting the exception message | |
| updateMessage | back to summary |
|---|---|
| protected final String updateMessage(String msg) Overrides com. Doc from com. Allows subclasses to alter the exception message that should be displayed to end users. By default the original message is kept unchanged. | |