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:
Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSuperCsvConstraintViolationException
(String msg, CsvContext context, CellProcessor processor) Constructs a new SuperCsvConstraintViolationException.SuperCsvConstraintViolationException
(String msg, CsvContext context, CellProcessor processor, 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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SuperCsvConstraintViolationException
public SuperCsvConstraintViolationException(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(String msg, CsvContext context, CellProcessor processor, Throwable t) Constructs a new SuperCsvConstraintViolationException.- Parameters:
msg
- the exception messagecontext
- the CSV contextprocessor
- the cell processor that was executingt
- the nested exception
-