mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
19 lines
458 B
JavaScript
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
|