MCPcopy Create free account
hub / github.com/TanStack/db / constructor

Method constructor

packages/db/src/errors.ts:701–707  ·  view source on GitHub ↗
(collectionId: string, error: Error | string)

Source from the content-addressed store, hash-verified

699// Sync Cleanup Errors
700export class SyncCleanupError extends TanStackDBError {
701 constructor(collectionId: string, error: Error | string) {
702 const message = error instanceof Error ? error.message : String(error)
703 super(
704 `Collection "${collectionId}" sync cleanup function threw an error: ${message}`,
705 )
706 this.name = `SyncCleanupError`
707 }
708}
709
710// Query Optimizer Errors

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected