@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
22 lines • 677 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShardError = void 0;
/**
* This non-retriable error is thrown when the system cannot detect the target
* shard to work with (e.g. a null ID or a missing field or something else).
*/
class ShardError extends Error {
constructor(message, where) {
super(message);
Object.defineProperty(this, "name", {
value: this.constructor.name,
writable: true,
enumerable: false,
});
if (where) {
this.stack += `\n on ${where}`;
}
}
}
exports.ShardError = ShardError;
//# sourceMappingURL=ShardError.js.map
;