import ElevationProfileError from "@arcgis/core/views/analysis/ElevationProfile/ElevationProfileError.js";const ElevationProfileError = await $arcgis.import("@arcgis/core/views/analysis/ElevationProfile/ElevationProfileError.js");- Inheritance:
- ElevationProfileError→
Error
- Since
- ArcGIS Maps SDK for JavaScript 4.34
ElevationProfileError is an error class for reporting errors in ElevationProfileAnalysisView2D.results or ElevationProfileAnalysisView3D.results.
The following error names are defined:
- "too-complex": The input geometry has too many points.
- "elevation-query-error": An error occurred while querying the elevation data.
- "unknown": An unknown error occurred.
Constructors
Properties
details
inherited Property
Inherited from: Error
The details object provides additional details specific to the error, giving more information about why the error was raised. For example, the details object for esriRequest includes additional information to help the developer diagnose issues with a problematic request.
Example
someAsyncFunction.then(callback) .catch(function(error){ console.log("Error details: ", error.details);});