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

collectionstateerror.md

179 lines3.4 KB

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