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

Method constructor

packages/effect/src/PlatformError.ts:160–166  ·  view source on GitHub ↗
(reason: BadArgument | SystemError)

Source from the content-addressed store, hash-verified

158 reason: BadArgument | SystemError
159}> {
160 constructor(reason: BadArgument | SystemError) {
161 if ("cause" in reason) {
162 super({ reason, cause: reason.cause } as any)
163 } else {
164 super({ reason })
165 }
166 }
167
168 /**
169 * Marks this value as a platform error wrapper for runtime guards.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected