Package: effect
Module: Cause
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
fail Construct a Fail causeisFailType Check if a Cause is a FailSignature
export interface Fail<out E> extends Cause.Variance<E>, Equal.Equal, Pipeable, Inspectable {
readonly _tag: "Fail"
readonly error: E
}
Since v2.0.0