(cause: unknown)
| 14 | /** `node:sqlite` is missing or could not be loaded in this Node.js runtime. */ |
| 15 | export 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}. */ |
nothing calls this directly
no outgoing calls
no test coverage detected