typeorm
Version:
Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
14 lines (12 loc) • 648 B
JavaScript
import { TypeORMError } from "./TypeORMError";
/**
* Thrown when operation is going to be executed on a subject without identifier.
* This error should never be thrown, however it still presents to prevent user from updation or removing the whole table.
* If this error occurs still, it most probably is an ORM internal problem which must be reported and fixed.
*/
export class SubjectWithoutIdentifierError extends TypeORMError {
constructor(subject) {
super(`Internal error. Subject ${subject.metadata.targetName} must have an identifier to perform operation.`);
}
}
//# sourceMappingURL=SubjectWithoutIdentifierError.js.map