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

Method raise

ark/type/runtime.ts:869–877  ·  view source on GitHub ↗
(input: ArkErrorInput)

Source from the content-addressed store, hash-verified

867): typeof Traversal =>
868 class extends Base {
869 protected override raise(input: ArkErrorInput): ArkError {
870 const issue = super.raise(input)
871 const written = writtenByCode[issue.code]
872 if (written) {
873 const context = { ...(input as object), path: issue.path }
874 writeIssue(issue, context, ...written)
875 }
876 return issue
877 }
878 }
879
880// a site held as an object, as a checker is its own, fails where it's passed

Callers

nothing calls this directly

Calls 1

writeIssueFunction · 0.85

Tested by

no test coverage detected