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

Function getErrorOptionsKey

packages/effect/src/Schema.ts:10635–10637  ·  view source on GitHub ↗
(options?: ErrorOptions)

Source from the content-addressed store, hash-verified

10633type ErrorOptionsKey = 0 | 1 | 2 | 3
10634
10635const getErrorOptionsKey = (options?: ErrorOptions): ErrorOptionsKey =>
10636 ((options?.includeStack === true ? 1 : 0) |
10637 (options?.excludeCause === true ? 2 : 0)) as ErrorOptionsKey
10638
10639const getErrorOptions = (key: ErrorOptionsKey): NormalizedErrorOptions | undefined => {
10640 switch (key) {

Callers 2

ErrorInstanceFunction · 0.85
DefectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected