StructureException
info.fingo.spata.error.StructureException
final class StructureException extends CSVException
Exception reported for CSV format errors.
Possible messageCodes are:
unclosedQuotationfor not enclosed quotation,unescapedQuotationfor not escaped quotation,unmatchedQuotationfor unmatched quotation (probably premature end of file),fieldTooLongfor values longer than provided maximum (may be caused by unmatched quotation),missingHeaderwhen header isn't found (may be empty content),duplicatedHeaderwhen two or more header names are duplicated (not unique),wrongNumberOfFieldswhen number of values doesn't match header or previous records size.
Value parameters
- col
-
column (character) at which error occurred
- errorCode
-
parsing error code
- field
-
field name at which error occurred
- position
-
source row (record) and line at which error occurred
Attributes
- See also
-
CSVException for description of fields providing error location.
- Graph
-
- Supertypes
-
class CSVExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article