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

Method checkSize

packages/effect/src/encoding/JsonArray.ts:531–535  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

529 }
530
531 checkSize(size: number): void {
532 if (size > this.config.maxElementSize) {
533 throw this.fail("Limit", `${this.subject()} exceeds maxElementSize of ${this.config.maxElementSize}`, this.start)
534 }
535 }
536
537 failDepth(): never {
538 throw this.fail("Limit", `${this.subject()} exceeds maxDepth of ${this.config.maxDepth}`, this.start)

Callers 2

feedMethod · 0.95
scanMethod · 0.95

Calls 2

failMethod · 0.95
subjectMethod · 0.95

Tested by

no test coverage detected