demo · v130

Error classifier & recovery planner

Pre-Chrome 130, every failed read of a large IndexedDB value surfaced as a generic UnknownError. Chrome 130 enriches the error.message with a class hint. Pick a failure mode, the page synthesizes the exact DOMException Chrome 130 would emit, classifies it, and emits a step-by-step recovery plan you can paste into your code.

simulated failure

DOMException emitted



        

classification

recovery plan

    the code

    const req = store.get(largeBlobKey);
    req.onerror = () => {
      // Chrome 130+: req.error.message contains a class hint
      const m = req.error.message;
      if (m.includes("Failed to read large value")) {
        if (m.includes("blob") && m.includes("not found")) {
          // recoverable: regenerate from network, then putBack
        } else if (m.includes("checksum")) {
          // corruption: delete the entry, alert telemetry
        } else if (m.includes("quota")) {
          // transient: schedule retry, evict cache
        }
      }
    };

    see also