@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
25 lines • 1.07 kB
TypeScript
/**
* Standard Schema V1 compatible error result. Every EntAccessError can be
* converted to it. See https://standardschema.dev.
*/
export interface StandardSchemaV1FailureResult {
readonly issues: ReadonlyArray<{
readonly message: string;
readonly path?: readonly string[] | undefined;
}>;
}
/**
* A base class for errors that trigger the validation framework to process them
* as a DENY/SKIP. Invariants in derived classes: the error message should be
* safe to pass to the client (it must not have any private information; a good
* example is EntValidationError), plus the message alone should be descriptive
* enough to extract information from it. If `cause` is passed, it becomes a
* part of the message, with the above assumptions.
*/
export declare class EntAccessError extends Error {
readonly entName: string;
readonly cause: string | Error | null;
constructor(entName: string, message: string, cause?: unknown);
toStandardSchemaV1(): StandardSchemaV1FailureResult;
}
//# sourceMappingURL=EntAccessError.d.ts.map