abort method

Cancels a transaction.

Syntax

IDBTransaction.abort();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Exceptions

This method can throw the following DOMException exceptions:

Note  As of a Windows Store app using JavaScript, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.

Exception propertiesCondition
name: InvalidStateError
code: DOMException.INVALID_STATE_ERR (11)

The transaction cannot be canceled because it has previously been committed or canceled.

Standards information

See also

IDBTransaction

 

 

Show:
© 2014 Microsoft