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
| Code | Meaning |
|---|---|
disposed | The chart or handle was removed. |
invalid_handle, stale_handle | The handle does not belong to this chart, or its object is gone. |
invalid_data | Rows failed validation, such as times in milliseconds. |
invalid_options | An option value was rejected. |
unsupported_operation, unsupported | The operation does not apply to this series kind or chart. |
reentrant_call | A chart API was called from inside a render callback. |
serialization_error, persistence_version_error | Saved state could not be read, or its version is not supported. |
extension_error | A custom series, study, or primitive failed. |
renderer_platform_error | The browser rendering platform failed. |
resource_limit | A cap was reached, such as panes, drawings, or study bindings. |