docstr: Add an Error Metric
      Default metric type is counter
  
  Parameters
  ----------
  name : str
      metric name
  value: int or float
      value of the metric
  dimensions: list
      list of Dimension objects for the metric
docstr_tok: ["Add","an","Error","Metric","Default","metric","type","is","counter","Parameters","--","--","--","--","--","name",":","str","metric","name","value",":","int","or","float","value","of","the","metric","dimensions",":","list","list","of","Dimension","objects","for","the","metric"]
code: def add_error(
      self,
      name: str,
      value: int or float,
      dimensions: list = [],
  ):
      """
      Add an Error Metric
          Default metric type is counter
  
      Parameters
      ----------
      name : str
          metric name
      value: int or float
          value of the metric
      dimensions: list
          list of Dimension objects for the metric
      """
      dimensions = self._add_default_dims(None, dimensions)
      metric = self._get_or_add_metric(
          name, "", dimensions, MetricTypes.COUNTER
      )
      metric.add_or_update(value, [dim.value for dim in dimensions])
  
imports: import abc
  import os
  import ts.metrics.metric_cache_errors
  from ts.metrics.dimension import Dimension
  from ts.metrics.metric_abstract import MetricAbstract
  from ts.metrics.metric_type_enum import MetricTypes
label_desc: Use image node_id 10 for calling the MetricCacheAbstract obj's underlying member method code with example usage: obj.add_error(name, value, dimensions) without return types