UNPKG

uva

Version:

A communication gateway for NodeJS microservices.

24 lines (20 loc) 410 B
/** * `ServerError` error. * * @api private */ function ServerError(type, message) { Error.call(this); Error.captureStackTrace(this, arguments.callee); this.name = 'ServerError'; this.message = message; this.type = type; } /** * Inherit from `Error`. */ ServerError.prototype.__proto__ = Error.prototype; /** * Expose `ServerError`. */ module.exports = ServerError;