public interface IDBDatabaseException
IDBDatabaseException
object represents exception conditions that can be encountered while performing database operations.Modifier and Type | Field and Description |
---|---|
static int |
ABORT_ERR
A request was aborted, for example, through a call to
IDBTransaction.abort . |
static int |
CONSTRAINT_ERR
A mutation operation in the transaction failed because a constraint was not satisfied.
|
static int |
DATA_ERR
Data provided to an operation does not meet requirements.
|
static int |
NO_ERR |
static int |
NON_TRANSIENT_ERR
An operation was not allowed on an object.
|
static int |
NOT_ALLOWED_ERR
An operation was called on an object where it is not allowed or at a time when it is not allowed.
|
static int |
NOT_FOUND_ERR
The operation failed, because the requested database object could not be found; for example, an object store did not exist but was being opened.
|
static int |
QUOTA_ERR
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 int |
READ_ONLY_ERR
A mutation operation was attempted in a
READ_ONLY transaction. |
static int |
TIMEOUT_ERR
A lock for the transaction could not be obtained in a reasonable time.
|
static int |
TRANSACTION_INACTIVE_ERR
A request was made against a transaction that is either not currently active or is already finished.
|
static int |
UNKNOWN_ERR
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.
|
static int |
VER_ERR
A request to open a database with a version lower than the one it already has.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
The most appropriate error code for the condition.
|
String |
getMessage()
Error message describing the exception raised.
|
String |
getName() |
static final int ABORT_ERR
IDBTransaction.abort
.static final int CONSTRAINT_ERR
static final int DATA_ERR
static final int NON_TRANSIENT_ERR
static final int NOT_ALLOWED_ERR
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 final int NOT_FOUND_ERR
static final int NO_ERR
static final int QUOTA_ERR
static final int READ_ONLY_ERR
READ_ONLY
transaction.static final int TIMEOUT_ERR
static final int TRANSACTION_INACTIVE_ERR
static final int UNKNOWN_ERR
static final int VER_ERR
IDBOpenDBRequest
.Copyright © 2018. All rights reserved.