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

Function getErrorOptionsKey

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

Source from the content-addressed store, hash-verified

9263type ErrorOptionsKey = 0 | 1 | 2 | 3
9264
9265const getErrorOptionsKey = (options?: ErrorOptions): ErrorOptionsKey =>
9266 ((options?.includeStack === true ? 1 : 0) |
9267 (options?.excludeCause === true ? 2 : 0)) as ErrorOptionsKey
9268
9269const getErrorOptions = (key: ErrorOptionsKey): NormalizedErrorOptions | undefined => {
9270 switch (key) {

Callers 2

ErrorInstanceFunction · 0.85
DefectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected