effect-io-ai

Package: effect
Module: PlatformError

PlatformError.PlatformError

Tagged error used by platform APIs to report either invalid arguments or system-level failures.

When to use

Use as the shared error type for platform APIs that expose invalid arguments and host or operating-system failures through a single Effect error channel.

Details

The reason field contains the underlying BadArgument or SystemError. When that reason has a cause, the cause is preserved on the wrapper.

See

Signature

declare class PlatformError { constructor(reason: BadArgument | SystemError) }

Source

Since v4.0.0