UNPKG

890 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/error/MustBeEntityError.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH;IAAuC,6CAAK;IAGxC,2BAAY,SAAiB,EAAE,UAAe;QAA9C,YACI,iBAAO,SAGV;QAND,UAAI,GAAG,mBAAmB,CAAC;QAIvB,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;QACzD,KAAI,CAAC,OAAO,GAAG,YAAU,SAAS,mDAA6C,UAAU,iBAAa,CAAC;;IAC3G,CAAC;IAEL,wBAAC;AAAD,CATA,AASC,CATsC,KAAK,GAS3C;AATY,8CAAiB","file":"MustBeEntityError.js","sourcesContent":["/**\n * Thrown when method expects entity but instead something else is given.\n */\nexport class MustBeEntityError extends Error {\n name = \"MustBeEntityError\";\n\n constructor(operation: string, wrongValue: any) {\n super();\n Object.setPrototypeOf(this, MustBeEntityError.prototype);\n this.message = `Cannot ${operation}, given value must be an entity, instead \"${wrongValue}\" is given.`;\n }\n\n}"],"sourceRoot":".."}
\No newline at end of file