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

23 lines
774 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InversifyCoreError = void 0;
const isAppErrorSymbol = Symbol.for('@inversifyjs/core/InversifyCoreError');
class InversifyCoreError 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) {
return InversifyCoreError.is(value) && value.kind === kind;
}
}
exports.InversifyCoreError = InversifyCoreError;
//# sourceMappingURL=InversifyCoreError.js.map