Files
dealplustech/dealplustech-astro/node_modules/drizzle-orm/errors.js
Kunthawat Greethong 6402d885f9 Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro
- Added PDPA-compliant Privacy Policy (Thai)
- Added PDPA-compliant Terms & Conditions (Thai)
- Added Cookie Policy with disclosure (Thai)
- Implemented cookie consent banner (client-side)
- Integrated Umami Analytics placeholder
- Blog system with 3 posts
- Optimized Docker configuration for production
- Static site build (184KB, 11 pages)
- Ready for Easypanel deployment

Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
2026-03-09 18:28:01 +07:00

32 lines
813 B
JavaScript

import { entityKind } from "./entity.js";
class DrizzleError extends Error {
static [entityKind] = "DrizzleError";
constructor({ message, cause }) {
super(message);
this.name = "DrizzleError";
this.cause = cause;
}
}
class DrizzleQueryError extends Error {
constructor(query, params, cause) {
super(`Failed query: ${query}
params: ${params}`);
this.query = query;
this.params = params;
this.cause = cause;
Error.captureStackTrace(this, DrizzleQueryError);
if (cause) this.cause = cause;
}
}
class TransactionRollbackError extends DrizzleError {
static [entityKind] = "TransactionRollbackError";
constructor() {
super({ message: "Rollback" });
}
}
export {
DrizzleError,
DrizzleQueryError,
TransactionRollbackError
};
//# sourceMappingURL=errors.js.map