UNPKG

zem

Version:

Create, test and publish Zeplin extensions with no build configuration

13 lines (11 loc) 360 B
export class ServerError extends Error { constructor(status, extra, msg) { const message = `${msg || `(${status}) Server error`}`; super(message); Error.captureStackTrace(this, this.constructor); this.status = status; this.message = message; this.name = "ServerError"; this.extra = extra; } };