effect-io-ai

Package: effect
Module: Config

Config.fail

Creates a config that always fails with the given error.

When to use

Use when you need to re-raise a specific config error, such as inside orElse.

Signature

declare const fail: (err: SourceError | Schema.SchemaError) => Config<never>

Source

Since v2.0.0