Package: effect
Module: 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
BadArgument for invalid inputs rejected before an operation runsSystemError for failures reported by the host platform or operating systembadArgument for creating this wrapper from rejected caller inputsystemError for creating this wrapper from a host or operating-system failureSignature
declare class PlatformError { constructor(reason: BadArgument | SystemError) }
Since v4.0.0