UNPKG

modelscrape

Version:

Cheerio-based scraping helper to scrape websites based on models/templates.

22 lines (16 loc) 423 B
"use strict"; class ParamError extends Error { constructor(message) { super(message); this.name = "ParamError"; } static invalidURL() { return new ParamError("An invalid URL has been provided"); } static invalidQueryObjects() { return new ParamError( "An invalid queryObjects collection has been provided" ); } } module.exports = ParamError;