public class DataValidationException extends DataProcessingException
DataValidationException is an error thrown during the processing of a record successfully parsed,
but whose data failed to pass a validation defined by annotation Validate| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
extractedIndexeserrorContentLength| Constructor and Description |
|---|
DataValidationException(java.lang.String message)
Creates a new validation exception with an error message only.
|
DataValidationException(java.lang.String message,
int columnIndex)
Creates a new validation exception with an error message and the column that could not be validated.
|
DataValidationException(java.lang.String message,
java.lang.Object[] row)
Creates a new validation exception with an error message and the row that could not be validated.
|
DataValidationException(java.lang.String message,
java.lang.Object[] row,
java.lang.Throwable cause)
Creates a new validation exception with an error message, the row that could not be validated, and the error cause.
|
DataValidationException(java.lang.String message,
java.lang.Throwable cause)
Creates a new validation exception with an error message and error cause
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getErrorDescription()
Returns a generic description of the error.
|
getColumnIndex, getColumnName, getDetails, getRow, getValue, isFatal, isHandled, markAsHandled, markAsNonFatal, setColumnIndex, setColumnName, setDetails, setRow, setValue, setValue, updateMessagegetCharIndex, getHeaders, getLineIndex, getParsedContent, getRecordNumber, setContextgetMessage, printIfNotEmpty, restrictContent, restrictContent, restrictContent, restrictContent, restrictContent, setErrorContentLengthprivate static final long serialVersionUID
public DataValidationException(java.lang.String message)
message - the error messagepublic DataValidationException(java.lang.String message,
java.lang.Throwable cause)
message - the error messagecause - the cause of the errorpublic DataValidationException(java.lang.String message,
java.lang.Object[] row)
message - the error messagerow - the row that could not be processed.public DataValidationException(java.lang.String message,
java.lang.Object[] row,
java.lang.Throwable cause)
message - the error messagerow - the row that could not be processed.cause - the cause of the errorpublic DataValidationException(java.lang.String message,
int columnIndex)
message - the error messagecolumnIndex - index of the column that could not be validated.protected java.lang.String getErrorDescription()
AbstractExceptionAbstractException.getMessage() to print out a general description of the error before a detailed message of the root cause.getErrorDescription in class DataProcessingException