Skip to content

VolumeMeasurementError

ESM: import VolumeMeasurementError from "@arcgis/core/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.js";
CDN: const VolumeMeasurementError = await $arcgis.import("@arcgis/core/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.js");
Class: @arcgis/core/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError
Inheritance: VolumeMeasurementError→Error
Since: ArcGIS Maps SDK for JavaScript 4.34
beta

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

The following error names are defined:

  • "distance-too-far": The view point is too far away from the volume measurement, making the measurement inaccurate.
  • "distance-too-close": The view point is too close to the volume measurement, making the measurement inaccurate.
  • "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

VolumeMeasurementError

Constructor
new VolumeMeasurementError(name, message, details)
Parameters

The error name.

message String

A message describing the details of the error.

details Object
optional

The details object provides additional details specific to the error.

Property Overview

Show inherited properties Hide inherited properties
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 volume measurement error.

VolumeMeasurementError

Property Details

details

Inherited
Property
details Object |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

Inherited
Property
message String
Inherited from Error

A message describing the details of the error.

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

name

Property
name VolumeMeasurementErrorName

The name of the volume measurement error.

Type Definitions

VolumeMeasurementErrorName

Type Definition
VolumeMeasurementErrorName String

The volume measurement error name.

Possible Values:"distance-too-far" |"distance-too-close" |"perimeter-too-large" |"unsupported-coordinate-system" |"unsupported-layer-transparency" |"unknown"

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.