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

Method fail

packages/effect/src/encoding/Csv.ts:231–239  ·  view source on GitHub ↗
(kind: "Syntax" | "RecordSize", message: string)

Source from the content-addressed store, hash-verified

229 }
230
231 fail(kind: "Syntax" | "RecordSize", message: string): CsvError {
232 return new CsvError({
233 kind,
234 message,
235 record: this.record,
236 line: this.recordLine,
237 column: kind === "Syntax" ? this.cells.length + 1 : undefined
238 })
239 }
240
241 checkSize(size: number): void {
242 if (size > this.maxRecordSize) {

Callers 3

checkSizeMethod · 0.95
failSyntaxMethod · 0.95
endMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected