Class SuperCsvConstraintViolationException

All Implemented Interfaces:
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
See Also:
  • Field Details

  • Constructor Details

    • SuperCsvConstraintViolationException

      public SuperCsvConstraintViolationException(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(String msg, CsvContext context, CellProcessor processor, 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