UNPKG

@dashevo/wallet-lib

Version:
23 lines (17 loc) 353 B
class WalletLibError extends Error { constructor(...params) { super(...params); this.name = this.constructor.name; } /** * @returns {string} */ toString() { let string = super.toString(); if (this.error) { string += `\n\n${this.error.toString()}`; } return string; } } module.exports = WalletLibError;