MCPcopy Create free account
hub / github.com/effect-app/libs / onError

Function onError

repos/effect/packages/sql/pg/src/PgClient.ts:303–306  ·  view source on GitHub ↗
(cause: Error)

Source from the content-addressed store, hash-verified

301 return makeCancel(pool, client!)
302 })
303 }
304 return Effect.callback<A, SqlError>((resume) => {
305 let done = false
306 let cancel: Effect.Effect<void> | undefined = undefined
307 let client: Pg.PoolClient | undefined = undefined
308 function onError(cause: Error) {
309 cleanup(cause)

Callers 3

effectify.tsFile · 0.50
encaseMaybeInEffect_Function · 0.50
encaseMaybeEither_Function · 0.50

Calls 4

cleanupFunction · 0.70
classifyErrorFunction · 0.70
resumeFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…