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

Method report3pError

3p/ampcontext.js:430–437  ·  view source on GitHub ↗

* Send 3p error to parent iframe * @param {!Error} e

(e)

Source from the content-addressed store, hash-verified

428 * @param {!Error} e
429 */
430 report3pError(e) {
431 if (!e.message) {
432 return;
433 }
434 this.client_.sendMessage(MessageType_Enum.USER_ERROR_IN_IFRAME, {
435 'message': e.message,
436 });
437 }
438}
439
440export class AmpContext extends AbstractAmpContext {

Callers 2

draw3pFunction · 0.80

Calls 1

sendMessageMethod · 0.45

Tested by

no test coverage detected