Files
NapCatQQ/.pnpm-store/v3/files/32/8933f3002ecfb72375595f9c0a3e3a397972d6be536489072d1c888ca23c3dfe3c3ed21ee71e363fbb8b3e75a8402362665fd5cb68e296f21e3b8a1ed39c27
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

24 lines
894 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InversifyContainerError = void 0;
const isAppErrorSymbol = Symbol.for('@inversifyjs/container/InversifyContainerError');
class InversifyContainerError extends Error {
[isAppErrorSymbol];
kind;
constructor(kind, message, options) {
super(message, options);
this[isAppErrorSymbol] = true;
this.kind = kind;
}
static is(value) {
return (typeof value === 'object' &&
value !== null &&
value[isAppErrorSymbol] === true);
}
static isErrorOfKind(value, kind) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
return InversifyContainerError.is(value) && value.kind === kind;
}
}
exports.InversifyContainerError = InversifyContainerError;
//# sourceMappingURL=InversifyContainerError.js.map