mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04: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);
|
|
}
|