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

Method constructor

packages/effect/src/encoding/SchemaBinary.ts:1248–1257  ·  view source on GitHub ↗
(issue: SchemaIssue.Issue)

Source from the content-addressed store, hash-verified

1246class IssueError extends Error {
1247 readonly issue: SchemaIssue.Issue
1248 constructor(issue: SchemaIssue.Issue) {
1249 const stackTraceLimit = getStackTraceLimit()
1250 setStackTraceLimit(0)
1251 try {
1252 super("SchemaBinary failure")
1253 } finally {
1254 setStackTraceLimit(stackTraceLimit)
1255 }
1256 this.issue = issue
1257 }
1258}
1259
1260function invalid(expected: string, input?: unknown, options?: SchemaAST.ParseOptions): never {

Callers

nothing calls this directly

Calls 2

getStackTraceLimitFunction · 0.90
setStackTraceLimitFunction · 0.90

Tested by

no test coverage detected