(key: ErrorOptionsKey)
| 10637 | (options?.excludeCause === true ? 2 : 0)) as ErrorOptionsKey |
| 10638 | |
| 10639 | const getErrorOptions = (key: ErrorOptionsKey): NormalizedErrorOptions | undefined => { |
| 10640 | switch (key) { |
| 10641 | case 0: |
| 10642 | return undefined |
| 10643 | case 1: |
| 10644 | return { includeStack: true } |
| 10645 | case 2: |
| 10646 | return { excludeCause: true } |
| 10647 | case 3: |
| 10648 | return { includeStack: true, excludeCause: true } |
| 10649 | } |
| 10650 | } |
| 10651 | |
| 10652 | const errorSchemaCache: Array<ErrorInstance | undefined> = [] |
| 10653 |
no outgoing calls
no test coverage detected