xentek/feathercache — Issue #1: QUOTA_EXCEEDED_ERR - Exception Handling
Author: xentek
Created: 2012-01-31 00:10:20+00:00
State: open
Labels: Bug

When saving to the cache, there is a real possibility that the quota could be exceeded. We need to check for this happening and take appropriate action.

An example of detecting this issue is below:

````
try {
localStorage.setItem("name", "Hello World!");
} catch (e) {
if (e == QUOTA_EXCEEDED_ERR) {
alert('Quota exceeded!');
}
}
````