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

Function throwError

ark/util/errors.ts:13–15  ·  view source on GitHub ↗
(message, ctor = Error)

Source from the content-addressed store, hash-verified

11 message: string,
12 ctor?: new (message: string) => Error
13) => never = (message, ctor = Error) => {
14 throw new ctor(message)
15}
16
17export class ParseError extends Error {
18 readonly name = "ParseError"

Callers 3

nearestFloatFunction · 0.90
throwInternalErrorFunction · 0.70
throwParseErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected