Skip to content
import VolumeMeasurementError from "@arcgis/core/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.js";
Inheritance:
VolumeMeasurementErrorError
Since
ArcGIS Maps SDK for JavaScript 4.34
beta

VolumeMeasurementError is an error class for reporting errors in a VolumeMeasurementAnalysisView3D.result.

The following error names are defined:

  • "insufficient-data": Insufficient data for an accurate measurement.
  • "perimeter-too-large": The input geometry's perimeter is too large for the current coordinate system.
  • "unsupported-coordinate-system": The coordinate system of the view (viewing mode and spatial reference) is not supported.
  • "unsupported-layer-transparency": The volume measurement analysis does not support transparent layers.
  • "unknown": An unknown error occurred.
See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
name

The error name.

message

A message describing the details of the error.

details
T

Additional information that is specific to the error.

Properties

PropertyTypeClass
details
inherited
T | null | undefined
message
readonly inherited
name
readonly

details

inherited Property
Type
T | null | undefined
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);
});

message

readonlyinherited Property
Type
string
Inherited from: Error

Message describing the error.

Example
someAsyncFunction.then(callback)
.catch(function(error){
console.log("Error message: ", error.message);
});

name

readonly Property
Type
VolumeMeasurementErrorName

The name of the volume measurement error.

Default value
"unknown"
Example
someAsyncFunction.then(callback)
.catch(function(error){
console.log("Error name: ", error.name);
});

Type definitions

VolumeMeasurementErrorName

Type definition

The volume measurement error name.

Type
"insufficient-data" | "perimeter-too-large" | "unsupported-coordinate-system" | "unsupported-layer-transparency" | "unknown"