apidoc-light
Version:
RESTful web API Documentation Generator
27 lines (22 loc) • 539 B
JavaScript
const util = require('util');
function WorkerError (message, file, block, element, definition, example, extra) {
// enable stack trace
Error.call(this);
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.file = file;
this.block = block;
this.element = element;
this.definition = definition;
this.example = example;
this.extra = extra;
}
/**
* Inherit from Error
*/
util.inherits(WorkerError, Error);
/**
* Exports
*/
module.exports = WorkerError;