MCPcopy Index your code
hub / github.com/TanStack/db / constructor

Method constructor

packages/db/src/errors.ts:25–41  ·  view source on GitHub ↗
(
    type: `insert` | `update`,
    issues: ReadonlyArray<{
      message: string
      path?: ReadonlyArray<string | number | symbol>
    }>,
    message?: string,
  )

Source from the content-addressed store, hash-verified

23 }>
24
25 constructor(
26 type: `insert` | `update`,
27 issues: ReadonlyArray<{
28 message: string
29 path?: ReadonlyArray<string | number | symbol>
30 }>,
31 message?: string,
32 ) {
33 const defaultMessage = `${type === `insert` ? `Insert` : `Update`} validation failed: ${issues
34 .map((issue) => `\n- ${issue.message} - path: ${issue.path}`)
35 .join(``)}`
36
37 super(message || defaultMessage)
38 this.name = `SchemaValidationError`
39 this.type = type
40 this.issues = issues
41 }
42}
43
44// Module Instance Errors

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected