haveno-ts/dist/utils/HavenoError.js

19 lines
458 B
JavaScript
Raw Normal View History

2022-06-07 17:48:04 -04:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Haveno error with message and code.
*/
class HavenoError extends Error {
/**
* Create the error with a message and code.
*
* @param {string} msg - the error message
* @param {number} code
*/
constructor(msg, code) {
super(msg);
this.code = code;
}
}
exports.default = HavenoError;
//# sourceMappingURL=HavenoError.js.map