Package: effect
Module: PlatformError
Error data for an invalid argument passed to a platform API.
When to use
Use when you need to model caller input rejected before a platform operation runs, including invalid-argument reason data.
Details
The error records the module and method that rejected the argument, with an
optional description and cause. It is usually wrapped in PlatformError.
See
badArgument for creating a wrapped PlatformError whose reason is BadArgumentSystemError for failures reported by the host platform or operating systemPlatformError for the wrapper used by most platform APIsSignature
declare class BadArgument
Since v4.0.0