CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
errors.cjs58 linesDownload Raw Back to drizzle-orm
1"use strict";2var __defProp = Object.defineProperty;3var __getOwnPropDesc = Object.getOwnPropertyDescriptor;4var __getOwnPropNames = Object.getOwnPropertyNames;5var __hasOwnProp = Object.prototype.hasOwnProperty;6var __export = (target, all) => {7  for (var name in all)8    __defProp(target, name, { get: all[name], enumerable: true });9};10var __copyProps = (to, from, except, desc) => {11  if (from && typeof from === "object" || typeof from === "function") {12    for (let key of __getOwnPropNames(from))13      if (!__hasOwnProp.call(to, key) && key !== except)14        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });15  }16  return to;17};18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);19var errors_exports = {};20__export(errors_exports, {21  DrizzleError: () => DrizzleError,22  DrizzleQueryError: () => DrizzleQueryError,23  TransactionRollbackError: () => TransactionRollbackError24});25module.exports = __toCommonJS(errors_exports);26var import_entity = require("./entity.cjs");27class DrizzleError extends Error {28  static [import_entity.entityKind] = "DrizzleError";29  constructor({ message, cause }) {30    super(message);31    this.name = "DrizzleError";32    this.cause = cause;33  }34}35class DrizzleQueryError extends Error {36  constructor(query, params, cause) {37    super(`Failed query: ${query}38params: ${params}`);39    this.query = query;40    this.params = params;41    this.cause = cause;42    Error.captureStackTrace(this, DrizzleQueryError);43    if (cause) this.cause = cause;44  }45}46class TransactionRollbackError extends DrizzleError {47  static [import_entity.entityKind] = "TransactionRollbackError";48  constructor() {49    super({ message: "Rollback" });50  }51}52// Annotate the CommonJS export names for ESM import in node:530 && (module.exports = {54  DrizzleError,55  DrizzleQueryError,56  TransactionRollbackError57});58//# sourceMappingURL=errors.cjs.map