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

Function errorFromJsonError

packages/effect/src/SchemaTransformation.ts:1141–1145  ·  view source on GitHub ↗
(options?: ErrorOptions)

Source from the content-addressed store, hash-verified

1139
1140/** @internal */
1141export const errorFromJsonError = (options?: ErrorOptions): Transformation<Error, JsonError> =>
1142 transform({
1143 decode: decodeJsonError,
1144 encode: (input) => makeEncodeDefect(options)(input) as JsonError
1145 })
1146
1147/** @internal */
1148export const defectFromJson = (options?: ErrorOptions) =>

Callers

nothing calls this directly

Calls 2

makeEncodeDefectFunction · 0.85
transformFunction · 0.70

Tested by

no test coverage detected