effect-io-ai

Package: effect
Module: Cause

Cause.Fail

Represents an expected error within a Cause.

Details

This interface models a Cause that carries an expected or known error of type E. For example, if you validate user input and find it invalid, you might store that error within a Fail.

See

Signature

export interface Fail<out E> extends Cause.Variance<E>, Equal.Equal, Pipeable, Inspectable {
  readonly _tag: "Fail"
  readonly error: E
}

Source

Since v2.0.0