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

14 lines
320 B
TypeScript

/**
* 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);
}