9 lines
244 B
JavaScript
9 lines
244 B
JavaScript
module.exports = function LocalError(message, extra) {
|
|
Error.captureStackTrace(this, this.constructor);
|
|
this.name = this.constructor.name;
|
|
this.message = message;
|
|
this.extra = extra;
|
|
};
|
|
|
|
require('util').inherits(module.exports, Error);
|