333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
{"version":3,"sources":["../../src/error/FindRelationsNotFoundError.ts"],"names":[],"mappings":";;;AAAA;;EAEE;AACF;IAAgD,sDAAK;IAEjD,oCAAY,iBAA2B;QAAvC,YACI,iBAAO,SAOV;QANG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;QAClE,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE;YAChC,KAAI,CAAC,OAAO,GAAG,gBAAa,iBAAiB,CAAC,CAAC,CAAC,qFAAiF,CAAC;SACrI;aAAM;YACH,KAAI,CAAC,OAAO,GAAG,eAAa,iBAAiB,CAAC,GAAG,CAAC,UAAA,QAAQ,IAAI,OAAA,OAAI,QAAQ,OAAG,EAAf,CAAe,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,4FAAyF,CAAC;SACtL;;IACL,CAAC;IAEL,iCAAC;AAAD,CAZA,AAYC,CAZ+C,KAAK,GAYpD;AAZY,gEAA0B","file":"FindRelationsNotFoundError.js","sourcesContent":["/**\n * Thrown when relations specified in the find options were not found in the entities.\n*/\nexport class FindRelationsNotFoundError extends Error {\n\n    constructor(notFoundRelations: string[]) {\n        super();\n        Object.setPrototypeOf(this, FindRelationsNotFoundError.prototype);\n        if (notFoundRelations.length === 1) {\n            this.message = `Relation \"${notFoundRelations[0]}\" was not found, please check if it is correct and really exist in your entity.`;\n        } else {\n            this.message = `Relations ${notFoundRelations.map(relation => `\"${relation}\"`).join(\", \")} were not found, please check if relations are correct and they exist in your entities.`;\n        }\n    }\n\n}"],"sourceRoot":".."}