@instantdb/core
Version:
Instant's core local abstraction
24 lines • 754 B
JavaScript
;
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