MCPcopy Create free account
hub / github.com/tiann/hapi / error

Method error

cli/src/claude/sdk/stream.ts:99–112  ·  view source on GitHub ↗

* Propagates an error through the stream

(error: Error)

Source from the content-addressed store, hash-verified

97 * Propagates an error through the stream
98 */
99 error(error: Error): void {
100 if (this.isDone || this.terminalError) {
101 return
102 }
103
104 this.terminalError = error
105 this.queue = []
106 if (this.readReject) {
107 const reject = this.readReject
108 this.readResolve = undefined
109 this.readReject = undefined
110 reject(error)
111 }
112 }
113
114 /**
115 * Implements async iterator cleanup

Callers 15

readRunnerStateFunction · 0.80
resume.tsFile · 0.80
claude.tsFile · 0.80
codex.tsFile · 0.80
handleConnectCommandFunction · 0.80
connect.tsFile · 0.80
notify.tsFile · 0.80
opencode.tsFile · 0.80
gemini.tsFile · 0.80
kimi.tsFile · 0.80
handleAuthCommandFunction · 0.80
auth.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected