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

Method constructor

packages/effect/src/Schema.ts:1223–1231  ·  view source on GitHub ↗
(issue: SchemaIssue.Issue)

Source from the content-addressed store, hash-verified

1221}> {
1222 readonly [SchemaErrorTypeId]: typeof SchemaErrorTypeId = SchemaErrorTypeId
1223 constructor(issue: SchemaIssue.Issue) {
1224 const stackTraceLimit = getStackTraceLimit()
1225 setStackTraceLimit(0)
1226 try {
1227 super({ issue })
1228 } finally {
1229 setStackTraceLimit(stackTraceLimit)
1230 }
1231 }
1232 override get message() {
1233 return SchemaIssue.defaultFormatter(this.issue)
1234 }

Callers

nothing calls this directly

Calls 2

getStackTraceLimitFunction · 0.90
setStackTraceLimitFunction · 0.90

Tested by

no test coverage detected