333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
{"version":3,"sources":["../../src/error/CannotReflectMethodParameterTypeError.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH;IAA2D,iEAAK;IAG5D,+CAAY,MAAgB,EAAE,UAAkB;QAAhD,YACI,iBAAO,SAKV;QARD,UAAI,GAAG,uCAAuC,CAAC;QAI3C,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,qCAAqC,CAAC,SAAS,CAAC,CAAC;QAC7E,KAAI,CAAC,OAAO,GAAG,uCAAoC,UAAU,mCAA4B,MAAM,CAAC,IAAI,eAAW;YAC3G,2FAAyF;YACzF,0GAAwG,CAAC;;IACjH,CAAC;IAEL,4CAAC;AAAD,CAXA,AAWC,CAX0D,KAAK,GAW/D;AAXY,sFAAqC","file":"CannotReflectMethodParameterTypeError.js","sourcesContent":["/**\n * Thrown when ORM cannot get method parameter's type.\n * Basically, when reflect-metadata is not available or tsconfig is not properly setup.\n */\nexport class CannotReflectMethodParameterTypeError extends Error {\n    name = \"CannotReflectMethodParameterTypeError\";\n\n    constructor(target: Function, methodName: string) {\n        super();\n        Object.setPrototypeOf(this, CannotReflectMethodParameterTypeError.prototype);\n        this.message = `Cannot get reflected type for a \"${methodName}\" method's parameter of \"${target.name}\" class. ` +\n            `Make sure you have turned on an \"emitDecoratorMetadata\": true option in tsconfig.json. ` +\n            `Also make sure you have imported \"reflect-metadata\" on top of the main entry file in your application.`;\n    }\n\n}"],"sourceRoot":".."}