effect-io-ai

Package: effect
Module: Exit

Exit.fail

Constructs a new Exit.Failure from the specified recoverable error of type E.

Signature

declare const fail: <E>(error: E) => Exit<never, E>

Source

Since v2.0.0