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

CollectionErrorInfo.md

66 lines1.3 KB

1---
2id: CollectionErrorInfo
3title: CollectionErrorInfo
4---
5​
6Defined in: [packages/db/src/types.ts:822](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L822)
7​
8Detail about a Collection problem. Every field except `cause` is plain data,
9so the value can be logged or sent as JSON; `cause` keeps the original value
10and is omitted from JSON.
11​
12## Extended by
13​
14- [`HealthProblem`](HealthProblem.md)
15​
16## Properties
17​
18### at
19​
20```ts
21readonly at: number;
22```
23​
24Defined in: [packages/db/src/types.ts:827](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L827)
25​
26Epoch milliseconds when the problem was reported.
27​
28***
29​
30### cause
31​
32```ts
33readonly cause: unknown;
34```
35​
36Defined in: [packages/db/src/types.ts:828](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L828)
37​
38***
39​
40### code?
41​
42```ts
43readonly optional code: string;
44```
45​
46Defined in: [packages/db/src/types.ts:825](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L825)
47​
48***
49​
50### message
51​
52```ts
53readonly message: string;
54```
55​
56Defined in: [packages/db/src/types.ts:824](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L824)
57​
58***
59​
60### name
61​
62```ts
63readonly name: string;
64```
65​
66Defined in: [packages/db/src/types.ts:823](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L823)