@nestjsforge/echarts

Exceptions

Typed exception classes thrown by @nestjsforge/echarts.

All exceptions extend a base EChartsException class, making it easy to catch library-specific errors:

try {
  await this.echarts.renderToBuffer(option);
} catch (err) {
  if (err instanceof EChartsRenderException) {
    // Rendering failed (timeout, invalid option, etc.)
  }
  if (err instanceof EChartsPoolException) {
    // Browser pool error (pool exhausted, browser crash)
  }
}
ClassExtendsDescription
EChartsExceptionErrorBase exception for all ECharts errors
EChartsRenderExceptionEChartsExceptionThrown when a render operation fails
EChartsTimeoutExceptionEChartsRenderExceptionThrown when a render exceeds the timeout
EChartsPoolExceptionEChartsExceptionThrown when the browser pool encounters an error
EChartsShutdownExceptionEChartsExceptionThrown during graceful shutdown errors
EChartsConfigExceptionEChartsExceptionThrown for invalid module configuration