haveno-ts/dist/utils/HavenoError.d.ts

14 lines
320 B
TypeScript
Raw Normal View History

2022-06-07 17:48:04 -04:00
/**
* Haveno error with message and code.
*/
export default class HavenoError extends Error {
code: number | undefined;
/**
* Create the error with a message and code.
*
* @param {string} msg - the error message
* @param {number} code
*/
constructor(msg: string, code?: number);
}