UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

17 lines 644 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EntNotReadableError = void 0; const types_1 = require("../../types"); const EntAccessError_1 = require("./EntAccessError"); /** * Error: thrown when an Ent cannot be read due to privacy reasons. */ class EntNotReadableError extends EntAccessError_1.EntAccessError { constructor(entName, vc, row, cause = null) { super(entName, `${entName}:${row[types_1.ID]} is not readable in ${vc}`, cause); this.vc = vc; this.row = row; } } exports.EntNotReadableError = EntNotReadableError; //# sourceMappingURL=EntNotReadableError.js.map