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

Method expectedError

src/utils/log.js:283–287  ·  view source on GitHub ↗

* Reports an error message and marks with an expected property. If the * logging is disabled, the error is rethrown asynchronously. * @param {string} tag * @param {...*} args

(tag, ...args)

Source from the content-addressed store, hash-verified

281 * @param {...*} args
282 */
283 expectedError(tag, ...args) {
284 if (!this.msg_(tag, LogLevel_Enum.ERROR, args)) {
285 self.__AMP_REPORT_ERROR?.(this.createExpectedError.apply(this, args));
286 }
287 }
288
289 /**
290 * Creates an error object.

Callers 15

viewerBaseCidFunction · 0.45
constructorMethod · 0.45
makeVisibleMethod · 0.45
getStore_Method · 0.45
constructorMethod · 0.45
fetchCid_Method · 0.45
layoutComplete_Method · 0.45
googlePageParametersFunction · 0.45
promiseErrorHandler_Method · 0.45
sendMessage_Method · 0.45

Calls 2

msg_Method · 0.95
applyMethod · 0.80

Tested by

no test coverage detected