(size: number)
| 239 | } |
| 240 | |
| 241 | checkSize(size: number): void { |
| 242 | if (size > this.maxRecordSize) { |
| 243 | throw this.fail("RecordSize", `CSV record exceeds maxRecordSize of ${this.maxRecordSize}`) |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | // A record that is already too large reports its size, not the syntax error. |
| 248 | failSyntax(size: number, message: string): CsvError { |
no test coverage detected