UNPKG

994 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/error/CannotDetermineEntityError.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH;IAAgD,sDAAK;IAGjD,oCAAY,SAAiB;QAA7B,YACI,iBAAO,SAGV;QAND,UAAI,GAAG,4BAA4B,CAAC;QAIhC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;QAClE,KAAI,CAAC,OAAO,GAAG,YAAU,SAAS,0IAAuI,CAAC;;IAC9K,CAAC;IAEL,iCAAC;AAAD,CATA,AASC,CAT+C,KAAK,GASpD;AATY,gEAA0B","file":"CannotDetermineEntityError.js","sourcesContent":["/**\n * Thrown when user tries to save/remove/etc. constructor-less object (object literal) instead of entity.\n */\nexport class CannotDetermineEntityError extends Error {\n name = \"CannotDetermineEntityError\";\n\n constructor(operation: string) {\n super();\n Object.setPrototypeOf(this, CannotDetermineEntityError.prototype);\n this.message = `Cannot ${operation}, given value must be instance of entity class, instead object literal is given. Or you must specify an entity target to method call.`;\n }\n\n}"],"sourceRoot":".."}
\No newline at end of file