java.lang.Object | |
↳ | com.google.firebase.database.DatabaseError |
Instances of DatabaseError are passed to callbacks when an operation failed. They contain a description of the specific error that occurred.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DATA_STALE | Internal use | |||||||||
int | DISCONNECTED | The operation had to be aborted due to a network disconnect | |||||||||
int | EXPIRED_TOKEN | The supplied auth token has expired | |||||||||
int | INVALID_TOKEN | The specified authentication token is invalid. | |||||||||
int | MAX_RETRIES | The transaction had too many retries | |||||||||
int | NETWORK_ERROR | The operation could not be performed due to a network error. | |||||||||
int | OPERATION_FAILED | The server indicated that this operation failed | |||||||||
int | OVERRIDDEN_BY_SET | The transaction was overridden by a subsequent set | |||||||||
int | PERMISSION_DENIED | This client does not have permission to perform this operation | |||||||||
int | UNAVAILABLE | The service is unavailable | |||||||||
int | UNKNOWN_ERROR | An unknown error occurred. | |||||||||
int | USER_CODE_EXCEPTION | An exception occurred in user code | |||||||||
int | WRITE_CANCELED | The write was canceled locally |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Can be used if a third party needs an Exception from Firebase Database for integration
purposes.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Internal use
The operation had to be aborted due to a network disconnect
The supplied auth token has expired
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.
The transaction had too many retries
The operation could not be performed due to a network error.
The server indicated that this operation failed
The transaction was overridden by a subsequent set
This client does not have permission to perform this operation
The service is unavailable
An unknown error occurred. Please refer to the error message and error details for more information.
An exception occurred in user code
The write was canceled locally
Parameters | |
---|---|
e |
Throwable
|
Returns | |
---|---|
DatabaseError |
Returns | |
---|---|
int |
One of the defined status codes, depending on the error |
Returns | |
---|---|
String |
Human-readable details on the error and additional information, e.g. links to docs; |
Returns | |
---|---|
String |
A human-readable description of the error |
Can be used if a third party needs an Exception from Firebase Database for integration purposes.
Returns | |
---|---|
DatabaseException |
An exception wrapping this error, with an appropriate message and no stack trace. |
Returns | |
---|---|
String |