Class

CsvFormatError

CsvFormatError(message, context)

CSV parsing errors with detailed context Thrown when CSV format is invalid or malformed

Constructor

# new CsvFormatError(message, context)

Create a CSV format error

Parameters:
Name Type Description
message string

Error message

context object

Additional context information (optional)

View Source src/util/errors.js, line 150

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')

View Source src/util/errors.js, line 186

Configured error instance

# static missingHeader() → {CsvFormatError}

Create error for missing CSV header row Occurs when no valid header row is found in CSV

View Source src/util/errors.js, line 167

Configured error instance