MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / createErrorId

Function createErrorId

packages/core/src/debug/errorAggregator.ts:52–59  ·  view source on GitHub ↗

* Create a unique ID for an error based on its characteristics.

(code: number, message: string, sourceFile: string | undefined)

Source from the content-addressed store, hash-verified

50 * Create a unique ID for an error based on its characteristics.
51 */
52function createErrorId(code: number, message: string, sourceFile: string | undefined): string {
53 const parts = [String(code), message];
54 if (sourceFile) {
55 parts.push(sourceFile);
56 }
57 // Simple hash: join and create a stable string
58 return parts.join("|");
59}
60
61/**
62 * Error handler callback type.

Callers 1

addErrorFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected