UNPKG

nyx_server

Version:

Node内容发布

20 lines (13 loc) 497 B
var util = require('util'); var AbstractError = function (msg, constr) { Error.captureStackTrace(this, constr || this) this.message = msg || 'Error' } util.inherits(AbstractError, Error) AbstractError.prototype.name = 'Abstract Error' var PermissionError = function(msg) { PermissionError.super_.call(this, msg, this.constructor); }; util.inherits(PermissionError, AbstractError); PermissionError.prototype.message = '权限错误'; module.exports.PermissionError = PermissionError;