UNPKG

zem

Version:

Create, test and publish Zeplin extensions with no build configuration

14 lines (11 loc) 348 B
export class ClientError extends Error { constructor(status, extra, msg) { const message = `${msg || "Client error"}`; super(message); Error.captureStackTrace(this, this.constructor); this.status = status; this.message = message; this.name = "ClientError"; this.extra = extra; } };