CsvValidationException class

Thrown when CSV data fails CsvSchema validation.

Contains the columnName, rowIndex, offending value, and the constraint that was violated.

Inheritance

Constructors

CsvValidationException(String message, {required String columnName, required int rowIndex, required dynamic value, required String constraint})
Creates a validation failure for one cell.
const

Properties

columnName String
Name of the column whose value failed validation.
final
constraint String
The rule that was violated, for example type or required.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human readable description of what went wrong.
finalinherited
rowIndex int
Zero-based index of the offending data row.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The value that failed, as it was decoded.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited