@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
18 lines (16 loc) • 486 B
text/typescript
import type { RowWithID } from "../../types";
import { ID } from "../../types";
import { EntAccessError } from "./EntAccessError";
/**
* Error: thrown when an Ent cannot be read due to privacy reasons.
*/
export class EntNotReadableError extends EntAccessError {
constructor(
entName: string,
public readonly vc: string,
public readonly row: RowWithID,
cause: unknown = null,
) {
super(entName, `${entName}:${row[ID]} is not readable in ${vc}`, cause);
}
}