Class DataValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataValidationException
    extends DataProcessingException
    A 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
    See Also:
    Serialized Form
    • Constructor Detail

      • DataValidationException

        public DataValidationException​(java.lang.String message)
        Creates a new validation exception with an error message only.
        Parameters:
        message - the error message
      • DataValidationException

        public DataValidationException​(java.lang.String message,
                                       java.lang.Throwable cause)
        Creates a new validation exception with an error message and error cause
        Parameters:
        message - the error message
        cause - the cause of the error
      • DataValidationException

        public 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.
        Parameters:
        message - the error message
        row - the row that could not be processed.
      • DataValidationException

        public 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.
        Parameters:
        message - the error message
        row - the row that could not be processed.
        cause - the cause of the error
      • DataValidationException

        public DataValidationException​(java.lang.String message,
                                       int columnIndex)
        Creates a new validation exception with an error message and the column that could not be validated.
        Parameters:
        message - the error message
        columnIndex - index of the column that could not be validated.