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

CollectionErrorInfo.md

62 lines1.2 KB

1---
2id: CollectionErrorInfo
3title: CollectionErrorInfo
4---
5​
6Defined in: [packages/db/src/types.ts:794](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L794)
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## Properties
13​
14### at
15​
16```ts
17readonly at: number;
18```
19​
20Defined in: [packages/db/src/types.ts:799](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L799)
21​
22Epoch milliseconds when the problem was reported.
23​
24***
25​
26### cause
27​
28```ts
29readonly cause: unknown;
30```
31​
32Defined in: [packages/db/src/types.ts:800](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L800)
33​
34***
35​
36### code?
37​
38```ts
39readonly optional code: string;
40```
41​
42Defined in: [packages/db/src/types.ts:797](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L797)
43​
44***
45​
46### message
47​
48```ts
49readonly message: string;
50```
51​
52Defined in: [packages/db/src/types.ts:796](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L796)
53​
54***
55​
56### name
57​
58```ts
59readonly name: string;
60```
61​
62Defined in: [packages/db/src/types.ts:795](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L795)