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

Function errorFromContext

ark/schema/shared/errors.ts:654–657  ·  view source on GitHub ↗
(
	ctx: InternalTraversal,
	input: ArkErrorContextInput
)

Source from the content-addressed store, hash-verified

652
653/** adds an error from a context at ctx's path */
654export const errorFromContext = (
655 ctx: InternalTraversal,
656 input: ArkErrorContextInput
657): ArkError => ctx.addError(errorOfContext(input, ctx.path, ctx.config))
658
659/** adds a node's error at a path from ctx's, as a site's is added */
660export const errorFromNodeAt = (

Callers 2

_traverseMethod · 0.90
raiseMethod · 0.85

Calls 2

errorOfContextFunction · 0.85
addErrorMethod · 0.45

Tested by

no test coverage detected