(key: ErrorOptionsKey)
| 9267 | (options?.excludeCause === true ? 2 : 0)) as ErrorOptionsKey |
| 9268 | |
| 9269 | const getErrorOptions = (key: ErrorOptionsKey): NormalizedErrorOptions | undefined => { |
| 9270 | switch (key) { |
| 9271 | case 0: |
| 9272 | return undefined |
| 9273 | case 1: |
| 9274 | return { includeStack: true } |
| 9275 | case 2: |
| 9276 | return { excludeCause: true } |
| 9277 | case 3: |
| 9278 | return { includeStack: true, excludeCause: true } |
| 9279 | } |
| 9280 | } |
| 9281 | |
| 9282 | const errorSchemaCache: Array<ErrorInstance | undefined> = [] |
| 9283 | /** |
no outgoing calls
no test coverage detected