{"version":3,"sources":["../../src/error/SubjectRemovedAndUpdatedError.ts"],"names":[],"mappings":";;;AAEA;;GAEG;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,sBAAmB,OAAO,CAAC,QAAQ,CAAC,IAAI,gDAA4C;YAC/F,6HAA6H,CAAC;;IACtI,CAAC;IAEL,oCAAC;AAAD,CAVA,AAUC,CAVkD,KAAK,GAUvD;AAVY,sEAA6B","file":"SubjectRemovedAndUpdatedError.js","sourcesContent":["import {Subject} from \"../persistence/Subject\";\n\n/**\n * Thrown when same object is scheduled for remove and updation at the same time.\n */\nexport class SubjectRemovedAndUpdatedError extends Error {\n name = \"SubjectRemovedAndUpdatedError\";\n\n constructor(subject: Subject) {\n super();\n Object.setPrototypeOf(this, SubjectRemovedAndUpdatedError.prototype);\n this.message = `Removed entity \"${subject.metadata.name}\" is also scheduled for update operation. ` +\n `Make sure you are not updating and removing same object (note that update or remove may be executed by cascade operations).`;\n }\n\n}"],"sourceRoot":".."}
|