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

Method constructor

packages/effect/test/schema/Schema.test.ts:5351–5355  ·  view source on GitHub ↗
(message?: string)

Source from the content-addressed store, hash-verified

5349 it("arg: message: string", async () => {
5350 class MyError extends Error {
5351 constructor(message?: string) {
5352 super(message)
5353 this.name = "MyError"
5354 Object.setPrototypeOf(this, MyError.prototype)
5355 }
5356 }
5357
5358 const schema = Schema.instanceOf(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected