UNPKG

@saysimple/node-sdk

Version:

The official SaySimple Node SDK. Want to use our awesome customer conversations platform? Please visit: https://saysimple.com

19 lines (15 loc) 501 B
export class HttpClientError extends Error { public readonly code: number; public readonly moreInfo: string; constructor(code: number, message: string, moreInfo: string) { super(message); this.name = "HttpClientError"; this.code = code; this.moreInfo = moreInfo; this.toString = (): string => JSON.stringify({ code : this.code, message : this.message, moreInfo : this.moreInfo }); } }