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

Function causeToFormatter

packages/effect/src/Schema.ts:10573–10576  ·  view source on GitHub ↗
(error: Formatter<E>, defect: Formatter<unknown>)

Source from the content-addressed store, hash-verified

10571}
10572
10573function causeToFormatter<E>(error: Formatter<E>, defect: Formatter<unknown>) {
10574 const causeReason = causeReasonToFormatter(error, defect)
10575 return (t: Cause_.Cause<E>) => `Cause([${t.reasons.map(causeReason).join(", ")}])`
10576}
10577
10578/**
10579 * Type-level representation of {@link ErrorInstance}.

Callers 2

CauseFunction · 0.85
ExitFunction · 0.85

Calls 3

causeReasonToFormatterFunction · 0.85
joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected