MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / normalizeBoundaryContext

Function normalizeBoundaryContext

src/utils/serviceErrorBoundary.js:6–12  ·  view source on GitHub ↗
(context = {})

Source from the content-addressed store, hash-verified

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

Callers 1

ensureTypedServiceErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected