MCPcopy Create free account
hub / github.com/Effect-TS/effect / checkSize

Method checkSize

packages/effect/src/encoding/Csv.ts:241–245  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

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 {

Callers 3

failSyntaxMethod · 0.95
endRecordMethod · 0.95
feedMethod · 0.95

Calls 1

failMethod · 0.95

Tested by

no test coverage detected