MCPcopy
hub / github.com/TanStack/ai / setError

Method setError

packages/ai-client/src/generation-client.ts:423–427  ·  view source on GitHub ↗
(error: Error | undefined)

Source from the content-addressed store, hash-verified

421 }
422
423 private setError(error: Error | undefined): void {
424 this.error = error
425 this.callbacksRef.onErrorChange?.(error)
426 this.devtoolsBridge.recordErrorChange(error)
427 }
428
429 private setStatus(status: GenerationClientState): void {
430 this.status = status

Callers 2

generateMethod · 0.95
resetMethod · 0.95

Calls 1

recordErrorChangeMethod · 0.45

Tested by

no test coverage detected