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

Method constructor

packages/effect/src/internal/core.ts:291–297  ·  view source on GitHub ↗
(
    defect: unknown,
    annotations = constEmptyAnnotations
  )

Source from the content-addressed store, hash-verified

289export class Die extends ReasonBase<"Die"> implements Cause.Die {
290 readonly defect: unknown
291 constructor(
292 defect: unknown,
293 annotations = constEmptyAnnotations
294 ) {
295 super("Die", annotations, defect)
296 this.defect = defect
297 }
298 override toString() {
299 return `Die(${format(this.defect)})`
300 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected