Constructor
# new CsvFormatError(message, context)
Create a CSV format error
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string
|
Error message |
context |
object
|
Additional context information (optional) |
Methods
# static mismatchedQuotes(location) → {CsvFormatError}
Create error for mismatched quotes in CSV Occurs when quoted fields are not properly closed
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
location |
string
|
CSV | Where the error occurred (default: 'CSV') |
Configured error instance
# static missingHeader() → {CsvFormatError}
Create error for missing CSV header row Occurs when no valid header row is found in CSV
Configured error instance