mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
15 lines
No EOL
561 B
JavaScript
15 lines
No EOL
561 B
JavaScript
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;
|
|
};
|
|
|
|
export { ParseError as default };
|
|
ParseError.prototype = Object.create(Error.prototype);
|
|
ParseError.prototype.constructor = ParseError;
|
|
//# sourceMappingURL=ParseError.js.map
|