MCPcopy
hub / github.com/codebymitch/TitanBot / getDefaultErrorCodeByType

Function getDefaultErrorCodeByType

src/utils/errorRegistry.js:110–112  ·  view source on GitHub ↗
(errorType = 'unknown')

Source from the content-addressed store, hash-verified

108}
109
110export function getDefaultErrorCodeByType(errorType = 'unknown') {
111 return TypeToErrorCode[errorType] || ErrorCodes.UNKNOWN_ERROR;
112}
113
114export function resolveErrorCode({ error, errorType = 'unknown', context = {} } = {}) {
115 const contextCode = normalizeErrorCode(context?.errorCode);

Callers 3

constructorMethod · 0.90
createErrorFunction · 0.90
resolveErrorCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected