@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 2.39 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */
import e from"../../../core/Error.js";import{difference as t}from"../../../core/SetUtils.js";class r extends e{constructor(e,t){super("shared-template-query-failed",`Request to fetch templates failed. templateIds: ${e.join(",")}`,{error:t}),this.templateIds=e}}class s extends e{constructor(e,r){const s=new Set(r.map(e=>e.templateId)),a=t(new Set(e),s);super("shared-template-some-templates-missing",`The service failed to return templates for the following 'templateId's: ${Array.from(a).join(",")}`)}}class a extends e{constructor(){super("shared-template-required-properties-not-set","Values must be specified for the `definition`, `featureService`, `layer`, and `view` properties of a `SharedTemplate` in order to load it")}}class o extends e{constructor(){super("shared-template-definition-required-properties-not-set","The `featureService`, `makeSharedTemplateFromJSON`, and `view` properties must all be set in order to load a template definition")}}class i extends e{constructor(e){super("shared-template-unsupported-builder",`This template uses an unsupported builder type, '${e}'`),this.builderType=e}}class l extends e{constructor(e,t){super("shared-template-layer-resolver-error",`The 'layerResolver' function failed to provide any layers for template with 'templateId: ${e}'`,{error:t}),this.templateId=e}}class n extends e{constructor(e,t){super("shared-template-utility-network-resolver-error",`The 'utilityNetworkResolver' function threw an error while attempting to find a utility network for template with 'templateId: ${e}'`,{error:t}),this.templateId=e}}class p extends e{constructor(e){super("shared-template-layer-unavailable",`None of the layers with which the template is associated are present in the view. Layer IDs: [${e.join(",")}]`),this.layerIds=e}}class d extends e{constructor(e){super("shared-template-relationship-not-found",`Relationship class '${e}' could not be found.`),this.relationshipCatalogId=e}}export{o as SharedTemplateDefinitionRequiredPropsNotSetError,l as SharedTemplateLayerResolverError,p as SharedTemplateLayerUnavailableError,s as SharedTemplateMissingTemplatesError,d as SharedTemplateRelationshipNotFound,r as SharedTemplateRequestError,a as SharedTemplateRequiredPropsNotSetError,i as SharedTemplateUnsupportedBuilderError,n as SharedTemplateUtilityNetworkResolverError};