Skip to content
ESM
import { ArcgisChartsError } from "@arcgis/charts-components/utils/errors/index.js";
Inheritance:
ArcgisChartsErrorError

Class that enhances the debugging and error handling process. Rather than returning a generic JavaScript error, this class returns a standardized error object with several properties.

Constructors

Constructor

Constructor

Creates a new ArcgisChartsError instance.

Parameters
ParameterTypeDescriptionRequired
name

A unique error name.

message

A message describing the details of the error.

details
T

The details object provides additional details specific to the error.

Properties

PropertyTypeClass
T | undefined

details

Property
Type
T | undefined

The details object provides additional details specific to the error, giving more information about why the error was raised.

For example, the details object includes additional information to help the developer diagnose issues with a problematic request.

name

Property
Type
string

A unique error name. This can be used to map to a localized error message to present to the user.