Files
NapCatQQ/.pnpm-store/v3/files/94/5ba26defc71fc9d8c7f0cb344cbe32e2842a587ac40983264ae913b34decd9523886be90ea8c5954a339845b22ab116dbe30d098c05a34450c548cf0535875
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
1.1 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleInjectionError = handleInjectionError;
const getDecoratorInfo_1 = require("../../decorator/calculations/getDecoratorInfo");
const stringifyDecoratorInfo_1 = require("../../decorator/calculations/stringifyDecoratorInfo");
const InversifyCoreError_1 = require("../../error/models/InversifyCoreError");
const InversifyCoreErrorKind_1 = require("../../error/models/InversifyCoreErrorKind");
function handleInjectionError(target, propertyKey, parameterIndex, error) {
if (InversifyCoreError_1.InversifyCoreError.isErrorOfKind(error, InversifyCoreErrorKind_1.InversifyCoreErrorKind.injectionDecoratorConflict)) {
const info = (0, getDecoratorInfo_1.getDecoratorInfo)(target, propertyKey, parameterIndex);
throw new InversifyCoreError_1.InversifyCoreError(InversifyCoreErrorKind_1.InversifyCoreErrorKind.injectionDecoratorConflict, `Unexpected injection error.
Cause:
${error.message}
Details
${(0, stringifyDecoratorInfo_1.stringifyDecoratorInfo)(info)}`, { cause: error });
}
throw error;
}
//# sourceMappingURL=handleInjectionError.js.map