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

Method constructor

packages/effect/src/internal/core.ts:247–253  ·  view source on GitHub ↗
(
    error: E,
    annotations = constEmptyAnnotations
  )

Source from the content-addressed store, hash-verified

245export class Fail<E> extends ReasonBase<"Fail"> implements Cause.Fail<E> {
246 readonly error: E
247 constructor(
248 error: E,
249 annotations = constEmptyAnnotations
250 ) {
251 super("Fail", annotations, error)
252 this.error = error
253 }
254 override toString() {
255 return `Fail(${format(this.error)})`
256 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected