MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

src/errors.ts:51–61  ·  view source on GitHub ↗
(message: string, code: string, context?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

49 readonly context?: Record<string, unknown>;
50
51 constructor(message: string, code: string, context?: Record<string, unknown>) {
52 super(message);
53 this.name = 'CodeGraphError';
54 this.code = code;
55 this.context = context;
56
57 // Maintain proper stack trace for V8
58 if (Error.captureStackTrace) {
59 Error.captureStackTrace(this, this.constructor);
60 }
61 }
62}
63
64/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected