/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import r from"../../../core/Error.js";function e(e,o,d){if(0!==e.error_code)throw new r(o,d,{errorCode:e.error_code,errorMessage:e.error_message})}function o(e){return e?.error_code?new r("knowledgeGraphService:server-or-decoding-error",e.error_message,{errorCode:e.error_code}):void 0}export{e as checkWasmError,o as wasmErrorToEsriError};
