UNPKG

convex

Version:

Client for the Convex Cloud

22 lines (21 loc) 804 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); return value; }; var _a; import { stringifyValueForError } from "./value.js"; const IDENTIFYING_FIELD = Symbol.for("ConvexError"); export class ConvexError extends Error { constructor(data) { super(typeof data === "string" ? data : stringifyValueForError(data)); __publicField(this, "name", "ConvexError"); __publicField(this, "data"); __publicField(this, _a, true); this.data = data; } } _a = IDENTIFYING_FIELD; //# sourceMappingURL=errors.js.map