MCPcopy
hub / github.com/ampproject/amphtml / createError

Method createError

third_party/subscriptions-project/config.js:565–572  ·  view source on GitHub ↗

* Creates an error. * @param {...*} var_args * @return {!Error}

(var_args)

Source from the content-addressed store, hash-verified

563 * @return {!Error}
564 */
565 createError(var_args) {
566 const error = createErrorVargs.apply(
567 null,
568 Array.prototype.slice.call(arguments)
569 );
570 this.prepareError_(error);
571 return error;
572 }
573
574 /**
575 * Creates an error object with its expected property set to true. Used for

Callers 4

test-log.jsFile · 0.45
test-error.jsFile · 0.45
checkMethod · 0.45

Calls 2

prepareError_Method · 0.95
applyMethod · 0.80

Tested by

no test coverage detected