mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-12-26 07:49:37 -05:00
14 lines
320 B
TypeScript
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);
|
|
}
|