UNPKG

xpg

Version:

a module to help auto generating correct structure of rest services in express (model-view-controller-service).

9 lines (8 loc) 223 B
const BaseError = class extends Error { constructor(name, statusCode, message){ super(message) Object.setPrototypeOf (this, new.target.prototype) Error.captureStackTrace(this) } } module.exports = BaseError