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

Method setError

packages/ai-client/src/chat-client.ts:533–537  ·  view source on GitHub ↗
(error: Error | undefined)

Source from the content-addressed store, hash-verified

531 }
532
533 private setError(error: Error | undefined): void {
534 this.error = error
535 this.callbacksRef.current.onErrorChange(error)
536 this.events.errorChanged(error?.message || null)
537 }
538
539 private buildDevtoolsBridgeOptions(
540 devtools: ChatClientOptions['devtools'],

Callers 3

reportStreamErrorMethod · 0.95
streamResponseMethod · 0.95
clearMethod · 0.95

Calls 1

errorChangedMethod · 0.80

Tested by

no test coverage detected