MCPcopy Create free account
hub / github.com/Effect-TS/effect / systemError

Function systemError

packages/effect/src/PlatformError.ts:231–239  ·  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

229 * @since 4.0.0
230 */
231export const systemError = (options: {
232 readonly _tag: SystemErrorTag
233 readonly module: string
234 readonly method: string
235 readonly description?: string | undefined
236 readonly syscall?: string | undefined
237 readonly pathOrDescriptor?: string | number | undefined
238 readonly cause?: unknown
239}): PlatformError => new PlatformError(new SystemError(options))
240
241/**
242 * 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