MCPcopy Index your code
hub / github.com/meetDeveloper/freeDictionaryAPI / constructor

Method constructor

modules/errors.js:3–12  ·  view source on GitHub ↗
(additionalInfo = {})

Source from the content-addressed store, hash-verified

1module.exports = {
2 NoDefinitionsFound: class NoDefinitionsFound extends Error {
3 constructor (additionalInfo = {}) {
4 super();
5
6 this.name = 'NoDefinitionsFound';
7 this.title = 'No Definitions Found';
8 this.message = 'Sorry pal, we couldn\'t find definitions for the word you were looking for.';
9 this.resolution = 'You can try the search again at later time or head to the web instead.';
10 this.additionalInfo = additionalInfo;
11 this.requestType = 'notFound';
12 }
13 },
14
15 RateLimitError: class RateLimitError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected