Class SuperCsvConstraintViolationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SuperCsvConstraintViolationException
    extends SuperCsvCellProcessorException
    Exception thrown by CellProcessors when constraint validation fails.

    Prior to 2.0.0, there was no way to distinguish between constraint validation failures and other exceptions thrown during CellProcessor execution - this class exists for that purpose.

    Since:
    2.0.0
    Author:
    James Bassett
    See Also:
    Serialized Form
    • Constructor Detail

      • SuperCsvConstraintViolationException

        public SuperCsvConstraintViolationException​(java.lang.String msg,
                                                    CsvContext context,
                                                    CellProcessor processor)
        Constructs a new SuperCsvConstraintViolationException.
        Parameters:
        msg - the exception message
        context - the CSV context
        processor - the cell processor that was executing
      • SuperCsvConstraintViolationException

        public SuperCsvConstraintViolationException​(java.lang.String msg,
                                                    CsvContext context,
                                                    CellProcessor processor,
                                                    java.lang.Throwable t)
        Constructs a new SuperCsvConstraintViolationException.
        Parameters:
        msg - the exception message
        context - the CSV context
        processor - the cell processor that was executing
        t - the nested exception