import ElevationProfileError from "@arcgis/core/views/analysis/ElevationProfile/ElevationProfileError.js";
const ElevationProfileError = await $arcgis.import("@arcgis/core/views/analysis/ElevationProfile/ElevationProfileError.js");
@arcgis/core/views/analysis/ElevationProfile/ElevationProfileError
ElevationProfileError is an error class for reporting errors in an ElevationProfileAnalysisView2D or ElevationProfileAnalysisView3D.
The following error names are defined:
- "invalid-geometry": The input geometry is invalid (for example, the path has less than two points).
- "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
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
The details object provides additional details specific to the error, giving more information about why the error was raised. | Error | ||
A message describing the details of the error. | Error | ||
The name of the elevation profile error. | ElevationProfileError |
Property Details
-
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.
ExamplesomeAsyncFunction.then(callback) .catch(function(error){ console.log("Error details: ", error.details); });
-
name
name ElevationProfileErrorName
-
The name of the elevation profile error.
Type Definitions
-
ElevationProfileErrorName
ElevationProfileErrorName String
-
The elevation profile error name.
Possible Values:"too-complex" |"invalid-geometry" |"elevation-query-error" |"unknown"