⚠️ Internal: This API is not publically exported by the package.

      Type alias Cause<E>

      Cause<E>: Empty | Fail<E> | Die | Interrupt | Sequential<E> | Parallel<E>

      A Cause represents the full history of a failure resulting from running an Effect workflow.

      Effect-TS uses a data structure from functional programming called a semiring to represent the Cause data type. This allows us to take a base type E (which represents the error type of an Effect) and capture the sequential and parallel composition of errors in a fully lossless fashion.

      Type Parameters

      • E

      Since

      2.0.0