Specify that .count() throws if called when the transaction is not active.
authorJonas Sicking <jonas@sicking.cc>
Fri, 02 Mar 2012 17:42:29 +0100
changeset 3258d2fd72de921
parent 324 b4158388d1f8
child 326 49374ca9ba89
Specify that .count() throws if called when the transaction is not active.
Overview.html
Speclet_022_IDB_API_Synchronous_APIs.html
Speclet_023_IDB_API_Asynchronous_APIs.html
     1.1 --- a/Overview.html	Fri Mar 02 17:24:28 2012 +0100
     1.2 +++ b/Overview.html	Fri Mar 02 17:42:29 2012 +0100
     1.3 @@ -2175,6 +2175,8 @@
     1.4                  </dd>
     1.5                </dl>
     1.6                <dl class="exception" title="DOMException">
     1.7 +                <dt>TransactionInactiveError</dt>
     1.8 +                <dd>The <a>transaction</a> this <a>IDBObjectStore</a> belongs to is not <a>active</a>.</dd>
     1.9                  <dt>DataError</dt>
    1.10                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    1.11                  <dt>InvalidStateError</dt>
    1.12 @@ -2376,6 +2378,8 @@
    1.13                  </dd>
    1.14                </dl>
    1.15                <dl class="exception" title="DOMException">
    1.16 +                <dt>TransactionInactiveError</dt>
    1.17 +                <dd>The <a>transaction</a> this <a>IDBIndex</a> belongs to is not <a>active</a>.</dd>
    1.18                  <dt>DataError</dt>
    1.19                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    1.20                  <dt>InvalidStateError</dt>
    1.21 @@ -3483,7 +3487,7 @@
    1.22                  <dd>Occurs if a request is made on a source object that has been deleted or removed.</dd>
    1.23                </dl>
    1.24              </dd>
    1.25 -            <dt>unsigned short count()</dt>
    1.26 +            <dt>unsigned long count()</dt>
    1.27              <dd>
    1.28                <p>
    1.29                  If the optional <var>key</var> parameter is not a <a>valid key</a> or a <a>key range</a>, 
    1.30 @@ -3504,6 +3508,8 @@
    1.31                  </dd>
    1.32                </dl>
    1.33                <dl class="exception" title="DOMException">
    1.34 +                <dt>TransactionInactiveError</dt>
    1.35 +                <dd>The <a>transaction</a> this <a>IDBObjectStoreSync</a> belongs to is not <a>active</a>.</dd>
    1.36                  <dt>DataError</dt>
    1.37                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    1.38                  <dt>InvalidStateError</dt>
    1.39 @@ -3733,7 +3739,7 @@
    1.40                  <dd>Occurs if a request is made on a source object that has been deleted or removed.</dd>
    1.41                </dl>
    1.42              </dd>
    1.43 -            <dt>unsigned short count()</dt>
    1.44 +            <dt>unsigned long count()</dt>
    1.45              <dd>
    1.46                <p>
    1.47                  If the optional <var>key</var> parameter is not a <a>valid key</a> or a <a>key range</a>, 
    1.48 @@ -3754,9 +3760,11 @@
    1.49                  </dd>
    1.50                </dl>
    1.51                <dl class="exception" title="DOMException">
    1.52 +                <dt>TransactionInactiveError</dt>
    1.53 +                <dd>The <a>transaction</a> this <a>IDBIndexSync</a> belongs to is not <a>active</a>.</dd>
    1.54                  <dt>DataError</dt>
    1.55                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    1.56 -                 <dt>InvalidStateError</dt>
    1.57 +                <dt>InvalidStateError</dt>
    1.58                  <dd>Occurs if a request is made on a source object that has been deleted or removed.</dd>
    1.59               </dl>
    1.60              </dd>
     2.1 --- a/Speclet_022_IDB_API_Synchronous_APIs.html	Fri Mar 02 17:24:28 2012 +0100
     2.2 +++ b/Speclet_022_IDB_API_Synchronous_APIs.html	Fri Mar 02 17:42:29 2012 +0100
     2.3 @@ -959,7 +959,7 @@
     2.4                  <dd>Occurs if a request is made on a source object that has been deleted or removed.</dd>
     2.5                </dl>
     2.6              </dd>
     2.7 -            <dt>unsigned short count()</dt>
     2.8 +            <dt>unsigned long count()</dt>
     2.9              <dd>
    2.10                <p>
    2.11                  If the optional <var>key</var> parameter is not a <a>valid key</a> or a <a>key range</a>, 
    2.12 @@ -980,6 +980,8 @@
    2.13                  </dd>
    2.14                </dl>
    2.15                <dl class="exception" title="DOMException">
    2.16 +                <dt>TransactionInactiveError</dt>
    2.17 +                <dd>The <a>transaction</a> this <a>IDBObjectStoreSync</a> belongs to is not <a>active</a>.</dd>
    2.18                  <dt>DataError</dt>
    2.19                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    2.20                  <dt>InvalidStateError</dt>
    2.21 @@ -1209,7 +1211,7 @@
    2.22                  <dd>Occurs if a request is made on a source object that has been deleted or removed.</dd>
    2.23                </dl>
    2.24              </dd>
    2.25 -            <dt>unsigned short count()</dt>
    2.26 +            <dt>unsigned long count()</dt>
    2.27              <dd>
    2.28                <p>
    2.29                  If the optional <var>key</var> parameter is not a <a>valid key</a> or a <a>key range</a>, 
    2.30 @@ -1230,9 +1232,11 @@
    2.31                  </dd>
    2.32                </dl>
    2.33                <dl class="exception" title="DOMException">
    2.34 +                <dt>TransactionInactiveError</dt>
    2.35 +                <dd>The <a>transaction</a> this <a>IDBIndexSync</a> belongs to is not <a>active</a>.</dd>
    2.36                  <dt>DataError</dt>
    2.37                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    2.38 -                 <dt>InvalidStateError</dt>
    2.39 +                <dt>InvalidStateError</dt>
    2.40                  <dd>Occurs if a request is made on a source object that has been deleted or removed.</dd>
    2.41               </dl>
    2.42              </dd>
     3.1 --- a/Speclet_023_IDB_API_Asynchronous_APIs.html	Fri Mar 02 17:24:28 2012 +0100
     3.2 +++ b/Speclet_023_IDB_API_Asynchronous_APIs.html	Fri Mar 02 17:42:29 2012 +0100
     3.3 @@ -1054,6 +1054,8 @@
     3.4                  </dd>
     3.5                </dl>
     3.6                <dl class="exception" title="DOMException">
     3.7 +                <dt>TransactionInactiveError</dt>
     3.8 +                <dd>The <a>transaction</a> this <a>IDBObjectStore</a> belongs to is not <a>active</a>.</dd>
     3.9                  <dt>DataError</dt>
    3.10                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    3.11                  <dt>InvalidStateError</dt>
    3.12 @@ -1255,6 +1257,8 @@
    3.13                  </dd>
    3.14                </dl>
    3.15                <dl class="exception" title="DOMException">
    3.16 +                <dt>TransactionInactiveError</dt>
    3.17 +                <dd>The <a>transaction</a> this <a>IDBIndex</a> belongs to is not <a>active</a>.</dd>
    3.18                  <dt>DataError</dt>
    3.19                  <dd>The <var>key</var> parameter is not a valid <a>key</a> or a <a>key range</a>.</dd>
    3.20                  <dt>InvalidStateError</dt>