Stay organized with collections Save and categorize content based on your preferences.
DatabaseErrorpublic class DatabaseError
Instances of DatabaseError are passed to callbacks when an operation failed. They contain a description of the specific error that occurred.
Summary Constantsstatic final int
DATA_STALE = -1
Internal use
static final int
DISCONNECTED = -4
The operation had to be aborted due to a network disconnect
static final int
EXPIRED_TOKEN = -6
The supplied auth token has expired
static final int
INVALID_TOKEN = -7
The specified authentication token is invalid.
static final int
MAX_RETRIES = -8
The transaction had too many retries
static final int
NETWORK_ERROR = -24
The operation could not be performed due to a network error.
static final int
OPERATION_FAILED = -2
The server indicated that this operation failed
static final int
OVERRIDDEN_BY_SET = -9
The transaction was overridden by a subsequent set
static final int
PERMISSION_DENIED = -3
This client does not have permission to perform this operation
static final int
UNAVAILABLE = -10
The service is unavailable
static final int
UNKNOWN_ERROR = -999
An unknown error occurred.
static final int
USER_CODE_EXCEPTION = -11
An exception occurred in user code
static final int
WRITE_CANCELED = -25
The write was canceled locally
Constants DATA_STALEpublic static final int DATA_STALE = -1
Internal use
DISCONNECTEDpublic static final int DISCONNECTED = -4
The operation had to be aborted due to a network disconnect
EXPIRED_TOKENpublic static final int EXPIRED_TOKEN = -6
The supplied auth token has expired
INVALID_TOKENpublic static final int INVALID_TOKEN = -7
The specified authentication token is invalid. This can occur when the token is malformed, expired, or the secret that was used to generate it has been revoked.
MAX_RETRIESpublic static final int MAX_RETRIES = -8
The transaction had too many retries
NETWORK_ERRORpublic static final int NETWORK_ERROR = -24
The operation could not be performed due to a network error.
OPERATION_FAILEDpublic static final int OPERATION_FAILED = -2
The server indicated that this operation failed
OVERRIDDEN_BY_SETpublic static final int OVERRIDDEN_BY_SET = -9
The transaction was overridden by a subsequent set
PERMISSION_DENIEDpublic static final int PERMISSION_DENIED = -3
This client does not have permission to perform this operation
UNAVAILABLEpublic static final int UNAVAILABLE = -10
The service is unavailable
UNKNOWN_ERRORpublic static final int UNKNOWN_ERROR = -999
An unknown error occurred. Please refer to the error message and error details for more information.
USER_CODE_EXCEPTIONpublic static final int USER_CODE_EXCEPTION = -11
An exception occurred in user code
WRITE_CANCELEDpublic static final int WRITE_CANCELED = -25
The write was canceled locally
Public fields codepublic final int codePublic methods getCode
public int getCode()Returns
int
One of the defined status codes, depending on the error
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-21 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4