@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
17 lines • 674 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntNotUpdatableError = void 0;
const types_1 = require("../../types");
const EntAccessError_1 = require("./EntAccessError");
/**
* Error: thrown when an Ent cannot be updated or deleted due to privacy reasons.
*/
class EntNotUpdatableError extends EntAccessError_1.EntAccessError {
constructor(entName, vc, row, cause = null) {
super(entName, `${entName}:${row[types_1.ID]} is not updatable/deletable in ${vc}`, cause);
this.vc = vc;
this.row = row;
}
}
exports.EntNotUpdatableError = EntNotUpdatableError;
//# sourceMappingURL=EntNotUpdatableError.js.map
;