UNPKG

1.33 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/error/SubjectWithoutIdentifierError.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH;IAAmD,yDAAK;IAGpD,uCAAY,OAAgB;QAA5B,YACI,iBAAO,SAIV;QAPD,UAAI,GAAG,+BAA+B,CAAC;QAInC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;QACrE,KAAI,CAAC,OAAO,GAAG,6BAA2B,OAAO,CAAC,QAAQ,CAAC,UAAU,oDAAiD;YAClH,sDAAsD,CAAC;;IAC/D,CAAC;IAEL,oCAAC;AAAD,CAVA,AAUC,CAVkD,KAAK,GAUvD;AAVY,sEAA6B","file":"SubjectWithoutIdentifierError.js","sourcesContent":["import {Subject} from \"../persistence/Subject\";\n\n/**\n * Thrown when operation is going to be executed on a subject without identifier.\n * This error should never be thrown, however it still presents to prevent user from updation or removing the whole table.\n * If this error occurs still, it most probably is an ORM internal problem which must be reported and fixed.\n */\nexport class SubjectWithoutIdentifierError extends Error {\n name = \"SubjectWithoutIdentifierError\";\n\n constructor(subject: Subject) {\n super();\n Object.setPrototypeOf(this, SubjectWithoutIdentifierError.prototype);\n this.message = `Internal error. Subject ${subject.metadata.targetName} must have an identifier to perform operation. ` +\n `Please report a github issue if you face this error.`;\n }\n\n}"],"sourceRoot":".."}
\No newline at end of file