apidoc-core
Version:
Core parser library to generate apidoc result following the apidoc-spec
27 lines (22 loc) • 558 B
JavaScript
var 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;