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