MCPcopy
hub / github.com/nbubna/store / makeError

Function makeError

libs/requirejs.js:165–173  ·  view source on GitHub ↗

* Constructs an error with a pointer to an URL with more information. * @param {String} id the error ID that maps to an ID on a web page. * @param {String} message human readable error. * @param {Error} [err] the original error, if there is one. * * @returns {Error}

(id, msg, err, requireModules)

Source from the content-addressed store, hash-verified

163 * @returns {Error}
164 */
165 function makeError(id, msg, err, requireModules) {
166 var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
167 e.requireType = id;
168 e.requireModules = requireModules;
169 if (err) {
170 e.originalError = err;
171 }
172 return e;
173 }
174
175 if (typeof define !== 'undefined') {
176 //If a define is already in play via another AMD loader,

Callers 5

checkLoadedFunction · 0.85
newContextFunction · 0.85
intakeDefinesFunction · 0.85
localRequireFunction · 0.85
requirejs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…