Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

querycompilationerror.md

183 lines3.6 KB

1---
2id: QueryCompilationError
3title: QueryCompilationError
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8# Class: QueryCompilationError
9​
10Defined in: [packages/db/src/errors.ts:323](https://github.com/TanStack/db/blob/main/packages/db/src/errors.ts#L323)
11​
12## Extends
13​
14- [`TanStackDBError`](../tanstackdberror.md)
15​
16## Extended by
17​
18- [`DistinctRequiresSelectError`](../distinctrequiresselecterror.md)
19- [`HavingRequiresGroupByError`](../havingrequiresgroupbyerror.md)
20- [`LimitOffsetRequireOrderByError`](../limitoffsetrequireorderbyerror.md)
21- [`CollectionInputNotFoundError`](../collectioninputnotfounderror.md)
22- [`UnsupportedFromTypeError`](../unsupportedfromtypeerror.md)
23- [`UnknownExpressionTypeError`](../unknownexpressiontypeerror.md)
24- [`EmptyReferencePathError`](../emptyreferencepatherror.md)
25- [`UnknownFunctionError`](../unknownfunctionerror.md)
26​
27## Constructors
28​
29### new QueryCompilationError()
30​
31```ts
32new QueryCompilationError(message): QueryCompilationError
33```
34​
35Defined in: [packages/db/src/errors.ts:324](https://github.com/TanStack/db/blob/main/packages/db/src/errors.ts#L324)
36​
37#### Parameters
38​
39##### message
40​
41`string`
42​
43#### Returns
44​
45[`QueryCompilationError`](../querycompilationerror.md)
46​
47#### Overrides
48​
49[`TanStackDBError`](../tanstackdberror.md).[`constructor`](../TanStackDBError.md#constructors)
50​
51## Properties
52​
53### cause?
54​
55```ts
56optional cause: unknown;
57```
58​
59Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2022.error.d.ts:26
60​
61#### Inherited from
62​
63[`TanStackDBError`](../tanstackdberror.md).[`cause`](../TanStackDBError.md#cause)
64​
65***
66​
67### message
68​
69```ts
70message: string;
71```
72​
73Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:1077
74​
75#### Inherited from
76​
77[`TanStackDBError`](../tanstackdberror.md).[`message`](../TanStackDBError.md#message-1)
78​
79***
80​
81### name
82​
83```ts
84name: string;
85```
86​
87Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:1076
88​
89#### Inherited from
90​
91[`TanStackDBError`](../tanstackdberror.md).[`name`](../TanStackDBError.md#name)
92​
93***
94​
95### stack?
96​
97```ts
98optional stack: string;
99```
100​
101Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:1078
102​
103#### Inherited from
104​
105[`TanStackDBError`](../tanstackdberror.md).[`stack`](../TanStackDBError.md#stack)
106​
107***
108​
109### prepareStackTrace()?
110​
111```ts
112static optional prepareStackTrace: (err, stackTraces) => any;
113```
114​
115Defined in: node\_modules/.pnpm/@types+node@22.13.10/node\_modules/@types/node/globals.d.ts:143
116​
117Optional override for formatting stack traces
118​
119#### Parameters
120​
121##### err
122​
123`Error`
124​
125##### stackTraces
126​
127`CallSite`[]
128​
129#### Returns
130​
131`any`
132​
133#### See
134​
135https://v8.dev/docs/stack-trace-api#customizing-stack-traces
136​
137#### Inherited from
138​
139[`TanStackDBError`](../tanstackdberror.md).[`prepareStackTrace`](../TanStackDBError.md#preparestacktrace)
140​
141***
142​
143### stackTraceLimit
144​
145```ts
146static stackTraceLimit: number;
147```
148​
149Defined in: node\_modules/.pnpm/@types+node@22.13.10/node\_modules/@types/node/globals.d.ts:145
150​
151#### Inherited from
152​
153[`TanStackDBError`](../tanstackdberror.md).[`stackTraceLimit`](../TanStackDBError.md#stacktracelimit)
154​
155## Methods
156​
157### captureStackTrace()
158​
159```ts
160static captureStackTrace(targetObject, constructorOpt?): void
161```
162​
163Defined in: node\_modules/.pnpm/@types+node@22.13.10/node\_modules/@types/node/globals.d.ts:136
164​
165Create .stack property on a target object
166​
167#### Parameters
168​
169##### targetObject
170​
171`object`
172​
173##### constructorOpt?
174​
175`Function`
176​
177#### Returns
178​
179`void`
180​
181#### Inherited from
182​
183[`TanStackDBError`](../tanstackdberror.md).[`captureStackTrace`](../TanStackDBError.md#capturestacktrace)