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

Method constructor

packages/effect/test/Equal.test.ts:937–941  ·  view source on GitHub ↗
(message: string, code: string)

Source from the content-addressed store, hash-verified

935 class CustomError extends Error {
936 readonly code: string
937 constructor(message: string, code: string) {
938 super(message)
939 this.name = "CustomError"
940 this.code = code
941 }
942 }
943
944 const error1 = new CustomError("test", "CUSTOM")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected