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

Function throwConstructorDefect

packages/effect/src/SchemaParser.ts:1117–1119  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1115const constructorDefectMessage = "Constructor adapter can only throw schema issues"
1116
1117function throwConstructorDefect(error: unknown): never {
1118 throw new Error(constructorDefectMessage, { cause: Cause.die(error) })
1119}
1120
1121function makeConstructorSync<T, E>(
1122 ast: SchemaAST.AST

Callers 2

constructSyncFunction · 0.85
makeClassSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected