MCPcopy Create free account
hub / github.com/effect-app/libs / systemError

Function systemError

repos/effect/packages/effect/src/PlatformError.ts:195–203  ·  view source on GitHub ↗
(options: {
  readonly _tag: SystemErrorTag
  readonly module: string
  readonly method: string
  readonly description?: string | undefined
  readonly syscall?: string | undefined
  readonly pathOrDescriptor?: string | number | undefined
  readonly cause?: unknown
})

Source from the content-addressed store, hash-verified

193 * @since 4.0.0
194 */
195export const systemError = (options: {
196 readonly _tag: SystemErrorTag
197 readonly module: string
198 readonly method: string
199 readonly description?: string | undefined
200 readonly syscall?: string | undefined
201 readonly pathOrDescriptor?: string | number | undefined
202 readonly cause?: unknown
203}): PlatformError => new PlatformError(new SystemError(options))
204
205/**
206 * Creates a `PlatformError` whose reason is a `BadArgument`.

Callers 2

NodeStdio.tsFile · 0.90
notFoundFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…