feat(errors) Expose errors through Iframe API (#9801)

This commit is contained in:
Horatiu Muresan
2021-08-25 15:23:40 +03:00
committed by GitHub
parent 6537447d7c
commit 7966c8f88f
3 changed files with 77 additions and 6 deletions

View File

@@ -1325,6 +1325,19 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that an error occured.
*
* @param {Object} error - The error.
* @returns {void}
*/
notifyError(error: Object) {
this._sendEvent({
name: 'error',
error
});
}
/**
* Disposes the allocated resources.
*