MCPcopy Create free account
hub / github.com/arktypeio/arktype / nodeError

Method nodeError

ark/schema/shared/errors.ts:562–566  ·  view source on GitHub ↗
(input: NodeErrorContextInput, data: unknown)

Source from the content-addressed store, hash-verified

560 data: unknown
561 ): ArkError<input["code"]>
562 override nodeError(input: NodeErrorContextInput, data: unknown): ArkError {
563 return this.addError(
564 errorOfNodeContext(input, pathAt(this.path), data, this.config)
565 )
566 }
567
568 // builds a site's error as compiled code does
569 override _at(site: FailureSite, data: unknown, key?: PropertyKey): boolean {

Callers 5

tApplyMethod · 0.45
tApplyFunction · 0.45
tApplyFunction · 0.45
tApplyFunction · 0.45
_traverseMethod · 0.45

Calls 3

pathAtFunction · 0.90
errorOfNodeContextFunction · 0.85
addErrorMethod · 0.45

Tested by

no test coverage detected