Firebase.Database.DatabaseError

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 int
The operation had to be aborted due to a network disconnect.
ExpiredToken = -6
const int
The supplied auth token has expired.
InvalidToken = -7
const int
The specified authentication token is invalid.
MaxRetries = -8
const int
The transaction had too many retries.
NetworkError = -24
const int
The operation could not be performed due to a network error.
OperationFailed = -2
const int
The server indicated that this operation failed.
OverriddenBySet = -9
const int
The transaction was overridden by a subsequent set.
PermissionDenied = -3
const int
This client does not have permission to perform this operation.
Unavailable = -10
const int
The service is unavailable.
UnknownError = -999
const int
An unknown error occurred.
UserCodeException = -11
const int
An exception occurred in user code.
WriteCanceled = -25
const int
The write was canceled locally.

Properties

Code
int
Returns
One of the defined status codes declared under DatabaseError, depending on the error
Details
string
Returns
Human-readable details on the error and additional information.
Message
string
Returns
A human-readable description of the error

Public functions

ToException()
Can be used if a third party needs an Exception from FirebaseDatabase for integration purposes.
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()

Can be used if a third party needs an Exception from FirebaseDatabase for integration purposes.

Details
Returns
An exception wrapping this error, with an appropriate message and no stack trace.

ToString

override string ToString()

Send feedback about...

Need help? Visit our support page.