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/core/errors.js, line 148

Extends

Methods

# toString() → {string}

Convert error to formatted string with context information

Overrides:

View Source src/core/errors.js, line 28

Formatted error message including context

string

# 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/core/errors.js, line 184

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/core/errors.js, line 165

Configured error instance