/**
 * Class that enhances the debugging and error handling process. Rather than returning a generic [JavaScript
 * error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error), this class returns a standardized error object with several properties.
 */
export class ArcgisChartsError<T = any> extends Error {
  /** Creates a new `ArcgisChartsError` instance. */
  constructor(name: string, message?: string, details?: T);
  /**
   * 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.
   */
  details?: T;
  /** A unique error name. This can be used to map to a localized error message to present to the user. */
  name: string;
}