Firebase.
  Instances of DatabaseError are passed within event arguments when an operation failed.
Summary
Instances of DatabaseError are passed to callbacks when an operation failed. They contain a description of the specific error that occurred.
| Public attributes | |
|---|---|
| Disconnected = -4 | const intThe operation had to be aborted due to a network disconnect. | 
| ExpiredToken = -6 | const intThe supplied auth token has expired. | 
| InvalidToken = -7 | const intThe specified authentication token is invalid.  | 
| MaxRetries = -8 | const intThe transaction had too many retries. | 
| NetworkError = -24 | const intThe operation could not be performed due to a network error. | 
| OperationFailed = -2 | const intThe server indicated that this operation failed. | 
| OverriddenBySet = -9 | const intThe transaction was overridden by a subsequent set. | 
| PermissionDenied = -3 | const intThis client does not have permission to perform this operation. | 
| Unavailable = -10 | const intThe service is unavailable. | 
| UnknownError = -999 | const intAn unknown error occurred.  | 
| UserCodeException = -11 | const intAn exception occurred in user code. | 
| WriteCanceled = -25 | const intThe write was canceled locally. | 
| Properties | |||
|---|---|---|---|
| Code | intReturns |  | One of the defined status codes declared under DatabaseError, depending on the error | 
| Details | stringReturns |  | Human-readable details on the error and additional information.  | 
| Message | stringReturns |  | A human-readable description of the error | 
| Public functions | |
|---|---|
| ToException() | |
| ToString() | override string | 
Public attributes
Disconnected
const int Disconnected = -4
The operation had to be aborted due to a network disconnect.
ExpiredToken
const int ExpiredToken = -6
The supplied auth token has expired.
InvalidToken
const int InvalidToken = -7
The specified authentication token is invalid.
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.
MaxRetries
const int MaxRetries = -8
The transaction had too many retries.
NetworkError
const int NetworkError = -24
The operation could not be performed due to a network error.
OperationFailed
const int OperationFailed = -2
The server indicated that this operation failed.
OverriddenBySet
const int OverriddenBySet = -9
The transaction was overridden by a subsequent set.
PermissionDenied
const int PermissionDenied = -3
This client does not have permission to perform this operation.
Unavailable
const int Unavailable = -10
The service is unavailable.
UnknownError
const int UnknownError = -999
An unknown error occurred.
An unknown error occurred. Please refer to the error message and error details for more information.
UserCodeException
const int UserCodeException = -11
An exception occurred in user code.
WriteCanceled
const int WriteCanceled = -25
The write was canceled locally.
Properties
Code
int Code
| Details | |
|---|---|
| Returns | One of the defined status codes declared under DatabaseError, depending on the error | 
Details
string Details
| Details | |
|---|---|
| Returns | Human-readable details on the error and additional information.  | 
Message
string Message
| Details | |
|---|---|
| Returns | A human-readable description of the error | 
Public functions
ToException
DatabaseException ToException()
ToString
override string ToString()