MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getErrMsgPromise

Method getErrMsgPromise

src/common/iPortal/iPortalUser.js:120–124  ·  view source on GitHub ↗

* @function IPortalUser.prototype.getErrMsgPromise * @description 获取包含错误信息的Promise对象。 * @version 10.1.0 * @param {string} errMsg - 传入的错误信息。 * @returns {Promise} 返回包含错误信息的 Promise 对象。

(errMsg)

Source from the content-addressed store, hash-verified

118 * @returns {Promise} 返回包含错误信息的 Promise 对象。
119 */
120 getErrMsgPromise(errMsg) {
121 return new Promise(resolve => {
122 resolve(errMsg);
123 })
124 }
125
126 /**
127 * @function IPortalUser.prototype.uploadDataRequest

Callers 5

addMapMethod · 0.95
addSceneMethod · 0.95
registerServiceMethod · 0.95
addDataMethod · 0.95
publishOrUnpublishMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected