Package org.supercsv.exception
Class SuperCsvConstraintViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.supercsv.exception.SuperCsvException
-
- org.supercsv.exception.SuperCsvCellProcessorException
-
- org.supercsv.exception.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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SuperCsvConstraintViolationException(java.lang.String msg, CsvContext context, CellProcessor processor)
Constructs a new SuperCsvConstraintViolationException.SuperCsvConstraintViolationException(java.lang.String msg, CsvContext context, CellProcessor processor, java.lang.Throwable t)
Constructs a new SuperCsvConstraintViolationException.
-
Method Summary
-
Methods inherited from class org.supercsv.exception.SuperCsvCellProcessorException
getProcessor, toString
-
Methods inherited from class org.supercsv.exception.SuperCsvException
getCsvContext
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SuperCsvConstraintViolationException
public SuperCsvConstraintViolationException(java.lang.String msg, CsvContext context, CellProcessor processor)
Constructs a new SuperCsvConstraintViolationException.- Parameters:
msg
- the exception messagecontext
- the CSV contextprocessor
- 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 messagecontext
- the CSV contextprocessor
- the cell processor that was executingt
- the nested exception
-
-