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

Class CustomError

packages/platform/node/test/NodeHttpServer.test.ts:705–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703 it.effect("error/schema", () =>
704 Effect.gen(function*() {
705 class CustomError extends Schema.Error<CustomError>("CustomError")({
706 _tag: Schema.tag("CustomError"),
707 name: Schema.String
708 }) {
709 [HttpServerRespondable.symbol]() {
710 return HttpServerResponse.schemaJson(CustomError)(this, { status: 599 })
711 }
712 }
713 yield* HttpRouter.add(
714 "GET",
715 "/home",

Callers

nothing calls this directly

Calls 1

tagMethod · 0.65

Tested by

no test coverage detected