UNPKG

@instantdb/core

Version:
24 lines 754 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InstantError = void 0; class InstantError extends Error { hint; constructor(message, hint) { super(message); this.hint = hint; const actualProto = new.target.prototype; if (Object.setPrototypeOf) { Object.setPrototypeOf(this, actualProto); } // Maintain proper stack trace for where our error was thrown if (Error.captureStackTrace) { Error.captureStackTrace(this, InstantError); } this.name = 'InstantError'; } get [Symbol.toStringTag]() { return 'InstantError'; } } exports.InstantError = InstantError; //# sourceMappingURL=InstantError.js.map