naive-upload
Version:
<p align="left"> <a href="https://www.npmjs.org/package/naive-upload"> <img src="https://img.shields.io/npm/v/naive-upload.svg"> </a> <a href="https://bundlephobia.com/package/naive-upload@latest"> <img src="https://img.shields.io/bundl
21 lines (20 loc) • 639 B
JavaScript
var i = Object.defineProperty;
var c = (n, e, r) => e in n ? i(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r;
var s = (n, e, r) => (c(n, typeof e != "symbol" ? e + "" : e, r), r);
class o extends Error {
constructor(r, t) {
super(r);
s(this, "innerError");
this.innerError = t;
}
static consoleWriteWithIndex(r, t) {
console.error(`\u7B2C${t}\u5C42\u9519\u8BEF`, r), r instanceof o && r.innerError && o.consoleWriteWithIndex(r.innerError, ++t);
}
static consoleWrite(r) {
o.consoleWriteWithIndex(r, 1);
}
}
export {
o as default
};
//# sourceMappingURL=UploadError.js.map