UNPKG

zcatalyst-integ-cliq

Version:

Node.js SDK for integrating Zoho Catalyst with Zoho Cliq

18 lines (17 loc) 398 B
export class CatalystError extends Error { constructor(msg, code = 1, originalError) { super(msg); this.message = msg; this.code = code; this.originalError = originalError; } toJSON() { return { message: this.message, code: this.code }; } toString() { return JSON.stringify(this.toJSON()); } }