yolo-scraper
Version:
A simple way to structure your web scraper.
13 lines (9 loc) • 356 B
JavaScript
function ValidationError (message, errorObjects) {
this.name = 'ValidationError'
this.message = 'Error invalid data: ' + message
this.errorObjects = errorObjects
this.stack = (new Error()).stack
}
ValidationError.prototype = Object.create(Error.prototype)
ValidationError.prototype.constructor = ValidationError
module.exports = ValidationError