MCPcopy Index your code
hub / github.com/tiann/hapi / throw

Method throw

cli/src/utils/PushableAsyncIterable.ts:118–121  ·  view source on GitHub ↗

* AsyncIterableIterator throw implementation

(e: any)

Source from the content-addressed store, hash-verified

116 * AsyncIterableIterator throw implementation
117 */
118 async throw(e: any): Promise<IteratorResult<T>> {
119 this.setError(e instanceof Error ? e : new Error(String(e)))
120 throw this.error
121 }
122
123 /**
124 * Make this iterable

Callers

nothing calls this directly

Calls 1

setErrorMethod · 0.95

Tested by

no test coverage detected