haveno-ts/dist/utils/HavenoError.js
2022-06-07 17:48:57 -04:00

19 lines
458 B
JavaScript

"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