{"version":3,"sources":["../../src/error/EntityMetadataNotFoundError.ts"],"names":[],"mappings":";;;AAAA,kCAAsC;AAEtC;GACG;AACH;IAAiD,uDAAK;IAGlD,qCAAY,MAAyC;QAArD,YACI,iBAAO,SAWV;QAdD,UAAI,GAAG,wBAAwB,CAAC;QAI5B,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;QACnE,IAAI,UAAkB,CAAC;QACvB,IAAI,MAAM,YAAY,oBAAY,EAAE;YAChC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SACpC;aAAM,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;YACrC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC;SAC5B;aAAM;YACH,UAAU,GAAG,MAAM,CAAC;SACvB;QACD,KAAI,CAAC,OAAO,GAAG,uBAAoB,UAAU,kBAAc,CAAC;;IAChE,CAAC;IAEL,kCAAC;AAAD,CAjBA,AAiBC,CAjBgD,KAAK,GAiBrD;AAjBY,kEAA2B","file":"EntityMetadataNotFoundError.js","sourcesContent":["import {EntitySchema} from \"../index\";\n\n/**\n */\nexport class EntityMetadataNotFoundError extends Error {\n name = \"EntityMetadataNotFound\";\n\n constructor(target: Function|EntitySchema<any>|string) {\n super();\n Object.setPrototypeOf(this, EntityMetadataNotFoundError.prototype);\n let targetName: string;\n if (target instanceof EntitySchema) {\n targetName = target.options.name;\n } else if (typeof target === \"function\") {\n targetName = target.name;\n } else {\n targetName = target;\n }\n this.message = `No metadata for \"${targetName}\" was found.`;\n }\n\n}"],"sourceRoot":".."}
|