class js.html.idb.DatabaseException
Available on js
In the IndexedDB API, an IDBDatabaseException
object represents exception conditions that can be encountered while performing database operations.
Documentation for this class was provided by MDN.
Class Fields
static var CONSTRAINT_ERR:Int
A mutation operation in the transaction failed because a constraint was not satisfied. For example, an object, such as an object store or index, already exists and a request attempted to create a new one.
static var NON_TRANSIENT_ERR:Int
An operation was not allowed on an object. Unless the cause of the error is corrected, retrying the same operation would result in failure.
static var NOT_ALLOWED_ERR:Int
An operation was called on an object where it is not allowed or at a time when it is not allowed. It also occurs if a request is made on a source object that has been deleted or removed.
More specific variants of this error includes: TRANSACTION_INACTIVE_ERR
and READ_ONLY_ERR
.
static var NOT_FOUND_ERR:Int
The operation failed, because the requested database object could not be found; for example, an object store did not exist but was being opened.
Either there's not enough remaining storage space or the storage quota was reached and the user declined to give more space to the database.
static var TRANSACTION_INACTIVE_ERR:Int
A request was made against a transaction that is either not currently active or is already finished.
static var UNKNOWN_ERR:Int
The operation failed for reasons unrelated to the database itself, and it is not covered by any other error code; for example, a failure due to disk IO errors.
A request to open a database with a version lower than the one it already has. This can only happen with IDBOpenDBRequest
.