MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / postgresServerError

Function postgresServerError

packages/core/sdk/src/fuma-runtime.test.ts:41–43  ·  view source on GitHub ↗
(code: string, message: string)

Source from the content-addressed store, hash-verified

39
40/** Shape of `postgres.js` `Errors.postgres(x)` — a server-side error report. */
41const postgresServerError = (code: string, message: string): Error =>
42 // oxlint-disable-next-line executor/no-error-constructor -- boundary: reconstructs the native driver error this module has to classify
43 Object.assign(new Error(message), { code, severity: "ERROR" });
44
45/**
46 * Shape of drizzle's `DrizzleQueryError`: the statement text and the bound

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected