cryptomarket
Version:
The CryptoMarket for Node.js
19 lines (15 loc) • 483 B
text/typescript
import { WSResponse, WSResponseError } from "./websocket/WSResponse";
export class CryptomarketSDKException extends Error {
constructor(...args: any) {
super(...args);
}
}
export class CryptomarketAPIException extends CryptomarketSDKException {
status: any;
code: number;
constructor({ code, message, description, }: WSResponseError, status?: any) {
super(`(code=${code}) ${message}. ${description || ''}`);
this.code = code;
this.status = status;
}
}