UNPKG

convex

Version:

Client for the Convex Cloud

18 lines (17 loc) 796 B
"use strict"; var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); var _a, _b; import { stringifyValueForError } from "./value.js"; const IDENTIFYING_FIELD = Symbol.for("ConvexError"); export class ConvexError extends (_b = Error, _a = IDENTIFYING_FIELD, _b) { constructor(data) { super(typeof data === "string" ? data : stringifyValueForError(data)); __publicField(this, "name", "ConvexError"); __publicField(this, "data"); __publicField(this, _a, true); this.data = data; } } //# sourceMappingURL=errors.js.map