Type (error: UpdogError) => void
Called when the SDK catches an internal error. The SDK recovers gracefully where possible — onError is for your logging and monitoring (Sentry, Datadog, etc.).
Code When PARSE_ERRORFile parsing failed (corrupt CSV, invalid XLSX, etc.) RENDER_ERRORComponent render failed (caught by error boundary) TRANSFORM_ERRORData transformation failed (column transform, value mapping) VALIDATION_ERRORValidation execution failed (validator threw instead of returning) WORKER_ERRORWeb Worker failed (filter worker, chat transform worker) COMMAND_ERRORUndo/redo command failed OPERATION_ERRORGeneral operation failed (bulk mutations, imports)
Sentry. captureException (error.originalError ?? error, {
tags: { code: error.code, source: error.source },