mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
22 lines
No EOL
670 B
JavaScript
22 lines
No EOL
670 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
// https://stackoverflow.com/a/46971044/970769
|
|
var ParseError = function ParseError(code) {
|
|
_classCallCheck(this, ParseError);
|
|
|
|
this.name = this.constructor.name;
|
|
this.message = code;
|
|
this.stack = new Error(code).stack;
|
|
};
|
|
|
|
exports["default"] = ParseError;
|
|
ParseError.prototype = Object.create(Error.prototype);
|
|
ParseError.prototype.constructor = ParseError;
|
|
//# sourceMappingURL=ParseError.js.map
|