effect-io-ai

Package: effect
Module: Cause

Cause.prettyErrors

Returns a list of prettified errors (PrettyError) from a Cause.

Details

This function inspects the entire Cause and produces an array of PrettyError objects. Each object may include additional metadata, such as a Span, to provide deeper insights into where and how the error occurred.

Signature

declare const prettyErrors: <E>(cause: Cause<E>) => Array<PrettyError>

Source

Since v3.2.0