MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / catch

Method catch

src/effected.ts:2378–2378  ·  view source on GitHub ↗
(
    effect: Name,
    handler: (message?: string) => Generator<F, T, unknown> | Effected<F, T>,
  )

Source from the content-addressed store, hash-verified

2376 ): EffectedDraft<P, E | F | G, T>;
2377
2378 catch<Name extends ErrorName<ExtractEffect<E>>, T, F extends Effect = never>(
2379 effect: Name,
2380 handler: (message?: string) => Generator<F, T, unknown> | Effected<F, T>,
2381 ): EffectedDraft<P, ExcludeEffect<E, Effect.Error<Name>> | F, R | T>;

Callers 6

readItFunction · 0.65
effected.spec.tsFile · 0.65
readSettingsFunction · 0.65
readSettingsFunction · 0.65

Implementers 1

Effectedsrc/effected.ts

Calls

no outgoing calls

Tested by 2

readItFunction · 0.52
readSettingsFunction · 0.52