MCPcopy Create free account
hub / github.com/Effect-TS/effect / catchDecoding

Function catchDecoding

packages/effect/src/Schema.ts:5410–5414  ·  view source on GitHub ↗
(
  f: (issue: SchemaIssue.Issue) => Effect.Effect<Option_.Option<S["Type"]>, SchemaIssue.Issue>
)

Source from the content-addressed store, hash-verified

5408 * @since 4.0.0
5409 */
5410export function catchDecoding<S extends Constraint>(
5411 f: (issue: SchemaIssue.Issue) => Effect.Effect<Option_.Option<S["Type"]>, SchemaIssue.Issue>
5412): (self: S) => middlewareDecoding<S, S["DecodingServices"]> {
5413 return catchDecodingWithContext(f)
5414}
5415
5416/**
5417 * Recovers from a decoding error with a handler that may require Effect services.

Callers

nothing calls this directly

Calls 1

catchDecodingWithContextFunction · 0.85

Tested by

no test coverage detected