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

Method constructor

src/db/node-sqlite.ts:16–25  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

14/** `node:sqlite` is missing or could not be loaded in this Node.js runtime. */
15export class NodeSqliteUnavailableError extends Error {
16 constructor(cause: unknown) {
17 const reason = cause instanceof Error ? cause.message : String(cause);
18 super(
19 `Node.js ${process.version} could not load its built-in SQLite module (${reason}).\n` +
20 'CodeGraph requires node:sqlite (Node.js 22.5+). Install the self-contained CodeGraph ' +
21 'release (it bundles a compatible Node), or run on Node 22.5+.',
22 { cause }
23 );
24 this.name = 'NodeSqliteUnavailableError';
25 }
26}
27
28/** Load `node:sqlite`, or throw {@link NodeSqliteUnavailableError}. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected