UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 488 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ 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};