(code: string, message: string)
| 39 | |
| 40 | /** Shape of `postgres.js` `Errors.postgres(x)` — a server-side error report. */ |
| 41 | const 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 |