Skip to content

Guides

Errors

AerisChartsError codes and what causes them.

Handling errors

AerisChartsError
import { AerisChartsError } from "@aeristerminal/aeris-charts";

try {
  series.setData(rows);
} catch (error) {
  if (error instanceof AerisChartsError && error.code === "invalid_data") {
    console.warn(series.last_ingestion_diagnostics());
  } else {
    throw error;
  }
}

Error codes

Error codes
CodeMeaning
disposedThe chart or handle was removed.
invalid_handle, stale_handleThe handle does not belong to this chart, or its object is gone.
invalid_dataRows failed validation, such as times in milliseconds.
invalid_optionsAn option value was rejected.
unsupported_operation, unsupportedThe operation does not apply to this series kind or chart.
reentrant_callA chart API was called from inside a render callback.
serialization_error, persistence_version_errorSaved state could not be read, or its version is not supported.
extension_errorA custom series, study, or primitive failed.
renderer_platform_errorThe browser rendering platform failed.
resource_limitA cap was reached, such as panes, drawings, or study bindings.