customerror.js 247 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 const m = function (code, message, buffer = null) { this.code = code this.message = message this.buffer = buffer this.stack = new Error().stack } m.prototype = Object.create(Error.prototype) m.prototype.constructor = m module.exports = m