(context = {})
| 4 | import { resolveErrorCode, getErrorMetadata } from './errorRegistry.js'; |
| 5 | |
| 6 | function normalizeBoundaryContext(context = {}) { |
| 7 | if (!context || typeof context !== 'object') { |
| 8 | return {}; |
| 9 | } |
| 10 | |
| 11 | return context; |
| 12 | } |
| 13 | |
| 14 | function inferErrorType(error, fallbackType = ErrorTypes.UNKNOWN) { |
| 15 | const message = error?.message?.toLowerCase?.() || ''; |
no outgoing calls
no test coverage detected