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

Function isCustomError

ark/schema/shared/errors.ts:1160–1161  ·  view source on GitHub ↗
(issue: object)

Source from the content-addressed store, hash-verified

1158 * one, which can't tell from what this copy's errors keep to themselves
1159 */
1160export const isCustomError = (issue: object): boolean =>
1161 isArkError(issue as ArkIssue) && isCustom(issue as ArkError)
1162
1163/**
1164 * @internal the message configured for an error's Type. A message written out

Callers 1

validateFunction · 0.85

Calls 2

isArkErrorFunction · 0.85
isCustomFunction · 0.70

Tested by

no test coverage detected