MCPcopy
hub / github.com/Effect-TS/effect / fail

Method fail

packages/effect/src/StreamEmit.ts:60–60  ·  view source on GitHub ↗

* Terminates with the specified error.

(error: E)

Source from the content-addressed store, hash-verified

58 * Terminates with the specified error.
59 */
60 fail(error: E): Promise<B>
61
62 /**
63 * Either emits the success value of this effect or terminates the stream

Callers 15

httpClient.tsFile · 0.65
sendBodyFunction · 0.65
onErrorFunction · 0.65
Sqlite.test.tsFile · 0.65
sqlite.tsFile · 0.65
onMessageFunction · 0.65
suiteFunction · 0.65
loadMigrationFunction · 0.65
makeFunction · 0.65
singleFunction · 0.65
Model.tsFile · 0.65

Calls

no outgoing calls

Tested by 15

retrieveFunction · 0.52
workerFunction · 0.52
RateLimiterTestSuiteFunction · 0.52
failInTheMiddleFunction · 0.52
assertConfigErrorFunction · 0.52
condFunction · 0.52
chainErrorFunction · 0.52
fFunction · 0.52
ioFunction · 0.52
ioFailFunction · 0.52
failOn0Function · 0.52
alwaysFailFunction · 0.52